You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

LLamaTypes.cs 2.8 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. #pragma warning disable
  4. namespace LLama.OldVersion
  5. {
  6. public enum ChatRole
  7. {
  8. Human,
  9. Assistant
  10. }
  11. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  12. public record EmbeddingUsage(int PromptTokens, int TotalTokens);
  13. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  14. public record EmbeddingData(int Index, string Object, float[] Embedding);
  15. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  16. public record Embedding(string Object, string Model, EmbeddingData[] Data, EmbeddingUsage Usage);
  17. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  18. public record CompletionLogprobs(int[] TextOffset, float[] TokenLogProbs, string[] Tokens, Dictionary<string, float>[] TopLogprobs);
  19. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  20. public record CompletionChoice(string Text, int Index, CompletionLogprobs? Logprobs, string? FinishReason);
  21. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  22. public record CompletionUsage(int PromptTokens, int CompletionTokens, int TotalTokens);
  23. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  24. public record CompletionChunk(string Id, string Object, int Created, string Model, CompletionChoice[] Choices);
  25. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  26. public record Completion(string Id, string Object, int Created, string Model, CompletionChoice[] Choices, CompletionUsage Usage);
  27. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  28. public record ChatCompletionMessage(ChatRole Role, string Content, string? Name = null);
  29. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  30. public record ChatCompletionChoice(int Index, ChatCompletionMessage Message, string? FinishReason);
  31. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  32. public record ChatCompletion(string Id, string Object, int Created, string Model, ChatCompletionChoice[] Choices, CompletionUsage Usage);
  33. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  34. public record ChatCompletionChunkDelta(string? Role, string? Content);
  35. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  36. public record ChatCompletionChunkChoice(int Index, ChatCompletionChunkDelta Delta, string? FinishReason);
  37. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  38. public record ChatCompletionChunk(string Id, string Model, string Object, int Created, ChatCompletionChunkChoice[] Choices);
  39. [Obsolete("The entire LLama.OldVersion namespace will be removed")]
  40. public record ChatMessageRecord(ChatCompletionMessage Message, DateTime Time);
  41. }