You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

27 lines
980 B

(
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" ]
)
]
)