feat: remove OpenCode assistant mode

This commit is contained in:
Xin Wang
2026-10-23 09:43:17 +08:00
parent 56b574d987
commit 81a6fdc30c
17 changed files with 78 additions and 313 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ async def _agent_resource_for(
assistant_id: str,
interface_type: str,
) -> ModelResource | None:
if interface_type not in {"dify", "fastgpt", "opencode"}:
if interface_type not in {"dify", "fastgpt"}:
return None
binding = await session.get(AssistantModelBinding, (assistant_id, "Agent"))
resource_id = binding.model_resource_id if binding else None
-6
View File
@@ -95,12 +95,6 @@ INTERFACE_DEFINITIONS: list[dict] = [
"capability": "Agent",
"fields": AGENT_COMMON + [field("appId", "App ID", required=True)],
},
{
"interface_type": "opencode",
"name": "OpenCode Agent",
"capability": "Agent",
"fields": AGENT_COMMON,
},
{
"interface_type": "stepfun-realtime",
"name": "StepFun StepAudio Realtime",