Fixed ACP to respect user's default model config. (#4006)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
parent
da51c9dfac
commit
9f603e39a6
1 changed files with 31 additions and 10 deletions
|
|
@ -50,9 +50,10 @@ export const AcpCommand = cmd({
|
|||
})
|
||||
|
||||
const stream = ndJsonStream(input, output)
|
||||
const agent = await ACP.init()
|
||||
|
||||
new AgentSideConnection((conn) => {
|
||||
return new ACP.Agent(conn)
|
||||
return agent.create(conn, {})
|
||||
}, stream)
|
||||
|
||||
log.info("setup connection")
|
||||
|
|
|
|||
Loading…
Reference in a new issue