This commit is contained in:
2026-09-19 02:17:41 -07:00
parent ae9892dce4
commit 623d68c38a
3 changed files with 42 additions and 2 deletions
+19 -1
View File
@@ -16,10 +16,28 @@ let
};
cfg = {
"$schema" = "https://opencode.ai/config.json";
enabled_providers = [ "llama.cpp" ];
enabled_providers = [ "llama.cpp" "zai-coding-plan" ];
model = "llama.cpp/laguna-s-2.1";
small_model = "llama.cpp/ornith-1.5-9b-uncensored";
provider = {
"zai-coding-plan" = {
npm = "@ai-sdk/openai-compatible";
name = "Z.AI Coding Plan";
options = {
baseURL = "https://api.z.ai/api/coding/paas/v4";
apiKey = "{env:ZAI_API_KEY}";
};
models = {
"glm-5.3" = {
name = "GLM-5.3";
limit = { context = 1000000; output = 131072; };
};
"glm-5.3-flash" = {
name = "GLM-5.3-Flash";
limit = { context = 1000000; output = 131072; };
};
};
};
"llama.cpp" = {
npm = "@ai-sdk/openai-compatible";
name = "llama.cpp (straylight)";