integrations: synchronize current Athena chat profiles for OpenCode
This commit is contained in:
1 parent
2848a33ef1
commit
39cfc6a0ab
3 files changed
+468
No files matched your search
@@ -0,0 +1,51 @@
|
||||
# OpenCode Athena profile list — 2026-10-13
|
||||
|
||||
Updated existing Athena providers in both configurations without changing
|
||||
provider credentials, endpoint URLs, other providers or application defaults:
|
||||
|
||||
- Mac: `~/.config/opencode/opencode.jsonc`, provider `athena_deck`.
|
||||
- Unraid OpenCode persistent home:
|
||||
`/mnt/nvme-storage/appdata/OpenCode/.config/opencode/opencode.jsonc`,
|
||||
provider `athena-deck` (container currently stopped; left stopped).
|
||||
|
||||
All 11 runnable chat profiles are discovered from `/v1/models`; context and
|
||||
vision/reasoning flags use `/props?model=...` without starting any worker.
|
||||
Canonical API IDs replace older display-name keys. Existing model references
|
||||
in `model`/`small_model` fields are remapped if necessary. Model display labels
|
||||
remain user-friendly. Qwen variants retain none/low/medium/high/xhigh requests;
|
||||
the backend's current metadata is used for non-Qwen reasoning support.
|
||||
|
||||
New profiles include Strata IQ2/IQ3, GLM Flash Q5 and Holo4. Unzensiert context
|
||||
is corrected to the current 131072 and Lukes Devlab advertises current vision.
|
||||
Model contexts are configured limits, not full-context benchmark claims.
|
||||
Existing Unraid output-zero convention is retained; no new output-token
|
||||
restriction is introduced. Image/audio service profiles are not chat models
|
||||
and therefore are not inserted into OpenCode's chat model picker.
|
||||
|
||||
## Validation
|
||||
|
||||
The installed OpenCode image successfully parses the updated Unraid config
|
||||
and `opencode models athena-deck` lists all 11 canonical model IDs. A separate
|
||||
credential-free config containing the actual Mac model fields is checked with
|
||||
the same available parser under provider `athena_deck`; the Mac app version
|
||||
itself is not independently tested. No production OpenCode/Deck restart and no
|
||||
model generation or GPU-profile switch is performed for discovery.
|
||||
|
||||
## Restore / refresh
|
||||
|
||||
Restore the normal private OpenCode config/auth storage from its protected
|
||||
backup, not Git. `models-20261013.json` contains only public model metadata;
|
||||
`update-models.py CONFIG MODELS` merges it into the existing Athena provider
|
||||
while preserving provider options and unrelated settings. It expects the
|
||||
current JSON-compatible configs (despite their .jsonc names), not arbitrary
|
||||
commented JSONC. For future profile changes regenerate the metadata from Deck
|
||||
discovery rather than guessing IDs or retaining stale contexts. Reopen the
|
||||
OpenCode session as needed and select via `/models`. Do not restart an active
|
||||
coding session just to refresh a list.
|
||||
|
||||
Official provider/model configuration:
|
||||
https://docs.opencode.ai/docs/providers/#custom-provider
|
||||
|
||||
No full OpenCode config, authentication values, private sessions or credentials
|
||||
are committed. Provider keys remained inside their existing configuration/auth
|
||||
stores and were not emitted by the updater or parser checks.
|
||||
@@ -0,0 +1,395 @@
|
||||
{
|
||||
"qwen3-8-27b-medium": {
|
||||
"name": "Qwen3.8 27B - Medium",
|
||||
"limit": {
|
||||
"context": 160000,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gemma4-31b-32k": {
|
||||
"name": "Gemma4 31B - 32K",
|
||||
"limit": {
|
||||
"context": 32768,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": false
|
||||
},
|
||||
"qwen3-8-27b-fast": {
|
||||
"name": "Qwen3.8 27B - Fast",
|
||||
"limit": {
|
||||
"context": 76800,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-unzensiert": {
|
||||
"name": "Qwen3.8 27B - Unzensiert",
|
||||
"limit": {
|
||||
"context": 131072,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-large": {
|
||||
"name": "Qwen3.8 27B - Large",
|
||||
"limit": {
|
||||
"context": 192000,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-ultra": {
|
||||
"name": "Qwen3.8 27B - Ultra",
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-lukes-devlab": {
|
||||
"name": "Qwen3.8 27B - Lukes Devlab",
|
||||
"limit": {
|
||||
"context": 131072,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"holo4-35b-a3b-medium": {
|
||||
"name": "Holo4 35B-A3B - Medium",
|
||||
"limit": {
|
||||
"context": 160000,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": false
|
||||
},
|
||||
"glm-4-7-flash-q5": {
|
||||
"name": "GLM-4.7-Flash - Q5",
|
||||
"limit": {
|
||||
"context": 200000,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": false
|
||||
},
|
||||
"flash-next-strata-iq2": {
|
||||
"name": "Qwen3.8 Flash-Next Strata IQ2 XS",
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
},
|
||||
"flash-next-strata-iq3": {
|
||||
"name": "Qwen3.8 Flash-Next Strata IQ3 XXS",
|
||||
"limit": {
|
||||
"context": 131072,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": true,
|
||||
"variants": {
|
||||
"low": {
|
||||
"disabled": true
|
||||
},
|
||||
"medium": {
|
||||
"disabled": true
|
||||
},
|
||||
"high": {
|
||||
"disabled": true
|
||||
},
|
||||
"Thinking aus": {
|
||||
"reasoningEffort": "none"
|
||||
},
|
||||
"Thinking niedrig": {
|
||||
"reasoningEffort": "low"
|
||||
},
|
||||
"Thinking mittel": {
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
"Thinking hoch": {
|
||||
"reasoningEffort": "high"
|
||||
},
|
||||
"Thinking extra hoch": {
|
||||
"reasoningEffort": "xhigh"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import json,pathlib,sys,os
|
||||
path=pathlib.Path(sys.argv[1]);models=json.loads(pathlib.Path(sys.argv[2]).read_text());d=json.loads(path.read_text())
|
||||
ids=[k for k in d.get('provider',{}) if k in ('athena-deck','athena_deck')]
|
||||
if len(ids)!=1:raise SystemExit('Expected one existing Athena provider; no change')
|
||||
pid=ids[0];provider=d['provider'][pid];old=provider.get('models',{});renames={}
|
||||
for new_id,row in models.items():
|
||||
old_id=next((k for k,v in old.items()if k==new_id or v.get('name')==row['name']),None)
|
||||
if old_id:
|
||||
kept=dict(old[old_id]);kept.update(row);models[new_id]=kept
|
||||
renames[pid+'/'+old_id]=pid+'/'+new_id
|
||||
provider['models']=models
|
||||
def remap(x):
|
||||
if isinstance(x,dict):
|
||||
for k,v in x.items():
|
||||
if k in ('model','small_model')and isinstance(v,str)and v in renames:x[k]=renames[v]
|
||||
else:remap(v)
|
||||
elif isinstance(x,list):
|
||||
for v in x:remap(v)
|
||||
remap(d)
|
||||
tmp=path.with_name(path.name+'.profiles.tmp');tmp.write_text(json.dumps(d,indent=2,ensure_ascii=False)+'\n');os.chmod(tmp,path.stat().st_mode&0o777);tmp.replace(path)
|
||||
check=json.loads(path.read_text());assert set(check['provider'][pid]['models'])==set(models)
|
||||
print(json.dumps({'updated':str(path),'provider':pid,'models':len(models),'credentials_unchanged':True}))
|
||||
Reference in new issue
Block a user