feat: remove OpenCode assistant mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user