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.
27 lines
980 B
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" ]
|
|
)
|
|
]
|
|
) |