-
Notifications
You must be signed in to change notification settings - Fork 4
/
OllamaResponse.cs
33 lines (30 loc) · 918 Bytes
/
OllamaResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
namespace ReasoningAI;
public class OllamaResponse
{
public string? model { get; set; }
public DateTime? created_at { get; set; }
public OllamaMessage? message { get; set; }
public bool? done { get; set; }
public long? total_duration { get; set; }
public long? load_duration { get; set; }
public long? prompt_eval_count { get; set; }
public long? prompt_eval_duration { get; set; }
public long? eval_count { get; set; }
public long? eval_duration { get; set; }
}
// {
// "model": "llama3.1",
// "created_at": "2023-12-12T14:13:43.416799Z",
// "message": {
// "role": "assistant",
// "content": "Hello! How are you today?"
// },
// "done": true,
// "total_duration": 5191566416,
// "load_duration": 2154458,
// "prompt_eval_count": 26,
// "prompt_eval_duration": 383809000,
// "eval_count": 298,
// "eval_duration": 4799921000
// }