|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Text; |
|
|
|
|
|
|
|
#pragma warning disable |
|
|
|
|
|
|
|
namespace LLama.OldVersion |
|
|
|
{ |
|
|
|
@@ -9,33 +10,49 @@ namespace LLama.OldVersion |
|
|
|
Human, |
|
|
|
Assistant |
|
|
|
} |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record EmbeddingUsage(int PromptTokens, int TotalTokens); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record EmbeddingData(int Index, string Object, float[] Embedding); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record Embedding(string Object, string Model, EmbeddingData[] Data, EmbeddingUsage Usage); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record CompletionLogprobs(int[] TextOffset, float[] TokenLogProbs, string[] Tokens, Dictionary<string, float>[] TopLogprobs); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record CompletionChoice(string Text, int Index, CompletionLogprobs? Logprobs, string? FinishReason); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record CompletionUsage(int PromptTokens, int CompletionTokens, int TotalTokens); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record CompletionChunk(string Id, string Object, int Created, string Model, CompletionChoice[] Choices); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record Completion(string Id, string Object, int Created, string Model, CompletionChoice[] Choices, CompletionUsage Usage); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatCompletionMessage(ChatRole Role, string Content, string? Name = null); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatCompletionChoice(int Index, ChatCompletionMessage Message, string? FinishReason); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatCompletion(string Id, string Object, int Created, string Model, ChatCompletionChoice[] Choices, CompletionUsage Usage); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatCompletionChunkDelta(string? Role, string? Content); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatCompletionChunkChoice(int Index, ChatCompletionChunkDelta Delta, string? FinishReason); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatCompletionChunk(string Id, string Model, string Object, int Created, ChatCompletionChunkChoice[] Choices); |
|
|
|
|
|
|
|
[Obsolete("The entire LLama.OldVersion namespace will be removed")] |
|
|
|
public record ChatMessageRecord(ChatCompletionMessage Message, DateTime Time); |
|
|
|
} |