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.

TextCompletion.cs 915 B

12345678910111213141516171819202122232425262728293031
  1. using LLama.Abstractions;
  2. using LLama.Common;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Runtime.CompilerServices;
  6. using System.Text;
  7. using System.Threading;
  8. namespace LLama
  9. {
  10. /// <summary>
  11. /// A class to execute text completion task.
  12. /// </summary>
  13. public class TextCompletion
  14. {
  15. public string Execute(string prompt, IInferenceParams? inferenceParams = null)
  16. {
  17. throw new NotImplementedException();
  18. }
  19. public ChatHistory Execute(ChatHistory prompt, IInferenceParams? inferenceParams = null)
  20. {
  21. throw new NotImplementedException();
  22. }
  23. public async IAsyncEnumerable<string> StreamingExecute(string prompt, IInferenceParams? inferenceParams = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. }
  28. }