Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Change post agent return body
Tomas Valenta8ed42c4e2aaa
diff --git a/pages/agent/smol-developer/setup.tsx b/pages/agent/smol-developer/setup.tsxindex 2c47a30d7..0f266d946 100644--- a/pages/agent/smol-developer/setup.tsx+++ b/pages/agent/smol-developer/setup.tsx@@ -64,7 +64,7 @@ async function handlePostAgent(url: string, { arg }: { arg: PostAgentBody }) {'Content-Type': 'application/json',},})- return await response.json() as { issueID: string }+ return await response.json() as { issueID: string, owner: string, repo: string }}function getSmolDevModelConfig(creds: Creds): ModelConfig & { templateID: TemplateID } {diff --git a/pages/api/agent.ts b/pages/api/agent.tsindex 907d38a0b..b4cf55cbb 100644--- a/pages/api/agent.ts+++ b/pages/api/agent.ts@@ -139,6 +139,8 @@ async function postAgent(req: NextApiRequest, res: NextApiResponse) {res.status(200).json({issueID,+ owner,+ repo,})} catch (err: any) {console.error(err)