chore: various improvements & refactor
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
, pkgs
|
||||
, config
|
||||
, namespace
|
||||
, osConfig
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
helpers = import ./lib.nix { inherit lib; };
|
||||
llamaSwapConfig = osConfig.${namespace}.services.llama-swap.config or { };
|
||||
|
||||
cfg = config.${namespace}.programs.terminal.opencode;
|
||||
in
|
||||
{
|
||||
@@ -21,7 +26,7 @@ in
|
||||
enableMcpIntegration = true;
|
||||
agents = {
|
||||
orchestrator = ./config/agents/orchestrator.md;
|
||||
architect = ./config/agents/architect.md;
|
||||
planner = ./config/agents/planner.md;
|
||||
developer = ./config/agents/developer.md;
|
||||
reviewer = ./config/agents/reviewer.md;
|
||||
agent-creator = ./config/agents/agent-creator.md;
|
||||
@@ -38,48 +43,13 @@ in
|
||||
content = builtins.toJSON {
|
||||
"$schema" = "https://opencode.ai/config.json";
|
||||
theme = "catppuccin";
|
||||
# model = "llama-swap/devstral-small-2-instruct";
|
||||
provider = {
|
||||
"llama-swap" = {
|
||||
npm = "@ai-sdk/openai-compatible";
|
||||
options = {
|
||||
baseURL = "https://llm-api.va.reichard.io/v1";
|
||||
};
|
||||
models = {
|
||||
"hf:Qwen/Qwen3-Coder-480B-A35B-Instruct" = {
|
||||
name = "Qwen3 Coder (480B) Instruct";
|
||||
};
|
||||
"hf:zai-org/GLM-4.7" = {
|
||||
name = "GLM 4.7";
|
||||
};
|
||||
"hf:MiniMaxAI/MiniMax-M2.1" = {
|
||||
name = "MiniMax M2.1";
|
||||
};
|
||||
devstral-small-2-instruct = {
|
||||
name = "Devstral Small 2 (24B)";
|
||||
};
|
||||
qwen3-coder-30b-instruct = {
|
||||
name = "Qwen3 Coder (30B)";
|
||||
};
|
||||
nemotron-3-nano-30b-thinking = {
|
||||
name = "Nemotron 3 Nano (30B) - Thinking";
|
||||
};
|
||||
gpt-oss-20b-thinking = {
|
||||
name = "GPT OSS (20B)";
|
||||
};
|
||||
qwen3-next-80b-instruct = {
|
||||
name = "Qwen3 Next (80B) - Instruct";
|
||||
};
|
||||
qwen3-30b-2507-thinking = {
|
||||
name = "Qwen3 2507 (30B) Thinking";
|
||||
};
|
||||
qwen3-30b-2507-instruct = {
|
||||
name = "Qwen3 2507 (30B) Instruct";
|
||||
};
|
||||
qwen3-4b-2507-instruct = {
|
||||
name = "Qwen3 2507 (4B) - Instruct";
|
||||
};
|
||||
};
|
||||
models = helpers.toOpencodeModels llamaSwapConfig;
|
||||
};
|
||||
};
|
||||
lsp = {
|
||||
|
||||
Reference in New Issue
Block a user