aichat: fix config example (#7212)

This commit is contained in:
jaredmontoya 2025-06-05 15:45:29 +02:00 committed by GitHub
parent 86b95fc1ed
commit 13a45ede6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 7 deletions

View file

@ -29,15 +29,17 @@ in
defaultText = lib.literalExpression "{ }";
example = lib.literalExpression ''
{
model = "Ollama:mistral-small:latest";
model = "ollama:mistral-small3.1:latest";
clients = [
{
type = "openai-compatible";
name = "Ollama";
name = "ollama";
api_base = "http://localhost:11434/v1";
models = [
{
name = "llama3.2:latest";
name = "mistral-small3.1:latest";
supports_function_calling = true;
supports_vision = true;
}
];
}

View file

@ -3,15 +3,16 @@
programs.aichat = {
enable = true;
settings = {
model = "Ollama:mistral-small:latest";
model = "ollama:llama3.2:latest";
clients = [
{
type = "openai-compatible";
name = "Ollama";
name = "ollama";
api_base = "http://localhost:11434/v1";
models = [
{
name = "llama3.2:latest";
supports_function_calling = true;
}
];
}

View file

@ -2,6 +2,7 @@ clients:
- api_base: http://localhost:11434/v1
models:
- name: llama3.2:latest
name: Ollama
supports_function_calling: true
name: ollama
type: openai-compatible
model: Ollama:mistral-small:latest
model: ollama:llama3.2:latest