mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
aichat: fix config example (#7212)
This commit is contained in:
@@ -29,15 +29,17 @@ in
|
|||||||
defaultText = lib.literalExpression "{ }";
|
defaultText = lib.literalExpression "{ }";
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
{
|
{
|
||||||
model = "Ollama:mistral-small:latest";
|
model = "ollama:mistral-small3.1:latest";
|
||||||
clients = [
|
clients = [
|
||||||
{
|
{
|
||||||
type = "openai-compatible";
|
type = "openai-compatible";
|
||||||
name = "Ollama";
|
name = "ollama";
|
||||||
api_base = "http://localhost:11434/v1";
|
api_base = "http://localhost:11434/v1";
|
||||||
models = [
|
models = [
|
||||||
{
|
{
|
||||||
name = "llama3.2:latest";
|
name = "mistral-small3.1:latest";
|
||||||
|
supports_function_calling = true;
|
||||||
|
supports_vision = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,15 +3,16 @@
|
|||||||
programs.aichat = {
|
programs.aichat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
model = "Ollama:mistral-small:latest";
|
model = "ollama:llama3.2:latest";
|
||||||
clients = [
|
clients = [
|
||||||
{
|
{
|
||||||
type = "openai-compatible";
|
type = "openai-compatible";
|
||||||
name = "Ollama";
|
name = "ollama";
|
||||||
api_base = "http://localhost:11434/v1";
|
api_base = "http://localhost:11434/v1";
|
||||||
models = [
|
models = [
|
||||||
{
|
{
|
||||||
name = "llama3.2:latest";
|
name = "llama3.2:latest";
|
||||||
|
supports_function_calling = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ clients:
|
|||||||
- api_base: http://localhost:11434/v1
|
- api_base: http://localhost:11434/v1
|
||||||
models:
|
models:
|
||||||
- name: llama3.2:latest
|
- name: llama3.2:latest
|
||||||
name: Ollama
|
supports_function_calling: true
|
||||||
|
name: ollama
|
||||||
type: openai-compatible
|
type: openai-compatible
|
||||||
model: Ollama:mistral-small:latest
|
model: ollama:llama3.2:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user