-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Feature]将Opencode Go纳入模型供应商 #8158
Copy link
Copy link
Open
Labels
area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.The bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.enhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.The bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description / 描述
希望 AstrBot 可以支持将 OpenCode Go subscription 作为模型提供方接入。
OpenCode Go 目前提供了可用的模型访问接口,官方文档中可以看到 Go 相关的模型端点位于
https://opencode.ai/zen/go/v1/...,并通过 API Key 进行访问,模型 ID 形如opencode-go/<model-id>。但从使用方式上看,它并不完全等同于统一的 OpenAI Compatible 接口:不同模型可能分别走
/v1/chat/completions、/v1/messages等不同接口,兼容方式存在差异。因此,希望 AstrBot 能增加对 OpenCode Go 的接入支持,最好支持以下能力:
opencode-go/<model-id>形式的模型名称;这样就可以直接在 AstrBot 中使用 OpenCode Go 订阅提供的模型能力,而不需要额外中转或自行改造适配层。
Use Case / 使用场景
我已经订阅了 OpenCode Go,希望直接在 AstrBot 中把它作为模型来源使用,用于日常对话、Agent、插件调用等场景。
相比额外部署中转服务,直接支持 OpenCode Go 可以降低接入成本,也方便已经在 OpenCode 生态内订阅模型的用户统一管理和使用模型资源。
Willing to Submit PR? / 是否愿意提交PR?
Code of Conduct