@Allyourneed 在 基元律动 api 导入Open Code使用方法 中发帖
修改code ~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
“provider”: {
“tokenrhythm”: {
“npm”: “@ai-sdk/openai-compatible”,
“name”: “TokenRhythm”,
"options": {
"baseURL": "https://tokenrhythm.studio/v1",
"apiKey": "sk_ "
},
"models": {
"deepseek-v4-flash-0731": {
"name": "DeepSeek V4 Flash"
},
"glm-5.2": {
"name": "glm-5....