( app: App( // Path to directory to save history files in. If set to `None` then history is disabled. history_dir: Some("./history") ), ai: [ AI( // Name of the AI shown to the UI name: "Example", // Generation endpoint url: "https://example.com/generate", // Request parameters, example usage below params: { // Simple string "model": String("example"), // Prompt type, allows for appening a string to the end of the prompt. Useful for stuff like `<|endofprompt|>`. "prompt": Prompt(Some("<|endofprompt|>")), // Temperature type "temperature": Temperature, // Max tokens type "max_tokens": MaxTokens }, // JSON objects to get from response retriever: [ "output" ] ) ] )