This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-05 23:44:00 -05:00
1 parent e687f0e4ba
commit 7be9a08779
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -1270,6 +1270,7 @@ async def run_chat_task(
async def _run_agent_target(agent_target: AgentModelTarget):
nonlocal content, text_buffer
from cptr.utils.agents.claude_code import run_claude_code_agent
from cptr.utils.agents.cline import run_cline_agent
from cptr.utils.agents.codex import run_codex_agent
from cptr.utils.agents.cursor import run_cursor_agent
from cptr.utils.agents.grok import run_grok_agent
@@ -1322,6 +1323,7 @@ async def run_chat_task(
"cursor": run_cursor_agent,
"grok": run_grok_agent,
"opencode": run_opencode_agent,
"cline": run_cline_agent,
}
runner = runners.get(agent_target.agent)
if runner is None:
+1 -1
View File
@@ -24,7 +24,7 @@ class ApiModelTarget:
class AgentModelTarget:
kind: Literal["agent"]
profile_id: str
agent: Literal["codex", "claude_code", "cursor", "grok", "opencode"]
agent: Literal["codex", "claude_code", "cursor", "grok", "opencode", "cline"]
model: str
full_model_id: str
config: dict[str, Any]