mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 16:31:50 +00:00
fix: model flag in non interactive mode (#2249)
This commit is contained in:
parent
d2e2eae4b8
commit
012a292948
1 changed files with 2 additions and 6 deletions
|
|
@ -171,12 +171,8 @@ export const RunCommand = cmd({
|
|||
const result = await Session.chat({
|
||||
sessionID: session.id,
|
||||
messageID,
|
||||
...(agent.model
|
||||
? agent.model
|
||||
: {
|
||||
providerID,
|
||||
modelID,
|
||||
}),
|
||||
providerID,
|
||||
modelID,
|
||||
agent: agent.name,
|
||||
parts: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue