mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 09:24:55 +01:00
fix: model flag in non interactive mode (#2249)
This commit is contained in:
@@ -171,12 +171,8 @@ export const RunCommand = cmd({
|
|||||||
const result = await Session.chat({
|
const result = await Session.chat({
|
||||||
sessionID: session.id,
|
sessionID: session.id,
|
||||||
messageID,
|
messageID,
|
||||||
...(agent.model
|
providerID,
|
||||||
? agent.model
|
modelID,
|
||||||
: {
|
|
||||||
providerID,
|
|
||||||
modelID,
|
|
||||||
}),
|
|
||||||
agent: agent.name,
|
agent: agent.name,
|
||||||
parts: [
|
parts: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user