feat: litellm provider for opncode
This commit is contained in:
@@ -27,7 +27,8 @@
|
|||||||
settings = {
|
settings = {
|
||||||
theme = "opencode";
|
theme = "opencode";
|
||||||
plugin = ["oh-my-opencode" "opencode-antigravity-auth@beta"];
|
plugin = ["oh-my-opencode" "opencode-antigravity-auth@beta"];
|
||||||
agent = builtins.fromJSON
|
agent =
|
||||||
|
builtins.fromJSON
|
||||||
(builtins.readFile "${inputs.agents}/agents/agents.json");
|
(builtins.readFile "${inputs.agents}/agents/agents.json");
|
||||||
formatter = {
|
formatter = {
|
||||||
alejandra = {
|
alejandra = {
|
||||||
@@ -87,122 +88,41 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
provider = {
|
provider = {
|
||||||
google = {
|
litellm = {
|
||||||
|
npm = "@ai-sdk/openai-compatible";
|
||||||
|
name = "LiteLLM (AZ-Gruppe)";
|
||||||
|
options.baseURL = "https://llm.az-gruppe.com/v1";
|
||||||
models = {
|
models = {
|
||||||
antigravity-gemini-3-pro = {
|
"gpt-5.2" = {
|
||||||
name = "Gemini 3 Pro (Antigravity)";
|
name = "GPT-5.2";
|
||||||
limit = {
|
|
||||||
context = 1048576;
|
|
||||||
output = 65535;
|
|
||||||
};
|
|
||||||
modalities = {
|
|
||||||
input = [ "text" "image" "pdf" ];
|
|
||||||
output = [ "text" ];
|
|
||||||
};
|
|
||||||
variants = {
|
|
||||||
low = { thinkingLevel = "low"; };
|
|
||||||
high = { thinkingLevel = "high"; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
antigravity-gemini-3-flash = {
|
|
||||||
name = "Gemini 3 Flash (Antigravity)";
|
|
||||||
limit = {
|
|
||||||
context = 1048576;
|
|
||||||
output = 65536;
|
|
||||||
};
|
|
||||||
modalities = {
|
|
||||||
input = [ "text" "image" "pdf" ];
|
|
||||||
output = [ "text" ];
|
|
||||||
};
|
|
||||||
variants = {
|
|
||||||
minimal = { thinkingLevel = "minimal"; };
|
|
||||||
low = { thinkingLevel = "low"; };
|
|
||||||
medium = { thinkingLevel = "medium"; };
|
|
||||||
high = { thinkingLevel = "high"; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
antigravity-claude-sonnet-4-5 = {
|
|
||||||
name = "Claude Sonnet 4.5 (Antigravity)";
|
|
||||||
limit = {
|
limit = {
|
||||||
context = 200000;
|
context = 200000;
|
||||||
output = 64000;
|
output = 16384;
|
||||||
};
|
};
|
||||||
modalities = {
|
modalities = {
|
||||||
input = [ "text" "image" "pdf" ];
|
input = ["text" "image"];
|
||||||
output = ["text"];
|
output = ["text"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
antigravity-claude-sonnet-4-5-thinking = {
|
"claude-sonnet-4-6" = {
|
||||||
name = "Claude Sonnet 4.5 Thinking (Antigravity)";
|
name = "Claude Sonnet 4.6";
|
||||||
limit = {
|
limit = {
|
||||||
context = 200000;
|
context = 200000;
|
||||||
output = 64000;
|
output = 16000;
|
||||||
};
|
};
|
||||||
modalities = {
|
modalities = {
|
||||||
input = [ "text" "image" "pdf" ];
|
input = ["text" "image"];
|
||||||
output = ["text"];
|
output = ["text"];
|
||||||
};
|
};
|
||||||
variants = {
|
|
||||||
low = { thinkingConfig = { thinkingBudget = 8192; }; };
|
|
||||||
max = { thinkingConfig = { thinkingBudget = 32768; }; };
|
|
||||||
};
|
};
|
||||||
};
|
"claude-opus-4-6" = {
|
||||||
antigravity-claude-opus-4-6-thinking = {
|
name = "Claude Opus 4.6";
|
||||||
name = "Claude Opus 4.6 Thinking (Antigravity)";
|
|
||||||
limit = {
|
limit = {
|
||||||
context = 200000;
|
context = 200000;
|
||||||
output = 64000;
|
output = 32000;
|
||||||
};
|
};
|
||||||
modalities = {
|
modalities = {
|
||||||
input = [ "text" "image" "pdf" ];
|
input = ["text" "image"];
|
||||||
output = [ "text" ];
|
|
||||||
};
|
|
||||||
variants = {
|
|
||||||
low = { thinkingConfig = { thinkingBudget = 8192; }; };
|
|
||||||
max = { thinkingConfig = { thinkingBudget = 32768; }; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"gemini-2.5-flash" = {
|
|
||||||
name = "Gemini 2.5 Flash (Gemini CLI)";
|
|
||||||
limit = {
|
|
||||||
context = 1048576;
|
|
||||||
output = 65536;
|
|
||||||
};
|
|
||||||
modalities = {
|
|
||||||
input = [ "text" "image" "pdf" ];
|
|
||||||
output = [ "text" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"gemini-2.5-pro" = {
|
|
||||||
name = "Gemini 2.5 Pro (Gemini CLI)";
|
|
||||||
limit = {
|
|
||||||
context = 1048576;
|
|
||||||
output = 65536;
|
|
||||||
};
|
|
||||||
modalities = {
|
|
||||||
input = [ "text" "image" "pdf" ];
|
|
||||||
output = [ "text" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"gemini-3-flash-preview" = {
|
|
||||||
name = "Gemini 3 Flash Preview (Gemini CLI)";
|
|
||||||
limit = {
|
|
||||||
context = 1048576;
|
|
||||||
output = 65536;
|
|
||||||
};
|
|
||||||
modalities = {
|
|
||||||
input = [ "text" "image" "pdf" ];
|
|
||||||
output = [ "text" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"gemini-3-pro-preview" = {
|
|
||||||
name = "Gemini 3 Pro Preview (Gemini CLI)";
|
|
||||||
limit = {
|
|
||||||
context = 1048576;
|
|
||||||
output = 65535;
|
|
||||||
};
|
|
||||||
modalities = {
|
|
||||||
input = [ "text" "image" "pdf" ];
|
|
||||||
output = ["text"];
|
output = ["text"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -213,8 +133,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/opencode/oh-my-opencode.json".text = builtins.toJSON {
|
home.file.".config/opencode/oh-my-opencode.json".text = builtins.toJSON {
|
||||||
"$schema" =
|
"$schema" = "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
|
||||||
"https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
|
|
||||||
# google_auth removed - use opencode-antigravity-auth plugin instead (already in plugin array)
|
# google_auth removed - use opencode-antigravity-auth plugin instead (already in plugin array)
|
||||||
agents = {
|
agents = {
|
||||||
sisyphus = {model = "zai-coding-plan/glm-5";};
|
sisyphus = {model = "zai-coding-plan/glm-5";};
|
||||||
|
|||||||
Reference in New Issue
Block a user