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.

LLamaOptions.cs 594 B

1234567891011121314151617181920
  1. namespace LLama.Web.Models
  2. {
  3. public class LLamaOptions
  4. {
  5. public List<ModelOptions> Models { get; set; }
  6. public List<PromptOptions> Prompts { get; set; } = new List<PromptOptions>();
  7. public List<ParameterOptions> Parameters { get; set; } = new List<ParameterOptions>();
  8. public void Initialize()
  9. {
  10. foreach (var prompt in Prompts)
  11. {
  12. if (File.Exists(prompt.Path))
  13. {
  14. prompt.Prompt = File.ReadAllText(prompt.Path).Trim();
  15. }
  16. }
  17. }
  18. }
  19. }