Skip to content

Commit 7f45943

Browse files
fix(opencode): honor model limit.input overrides (#16306)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
1 parent 6e1400f commit 7f45943

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/provider/provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,7 @@ export namespace Provider {
11001100
options: mergeDeep(existingModel?.options ?? {}, model.options ?? {}),
11011101
limit: {
11021102
context: model.limit?.context ?? existingModel?.limit?.context ?? 0,
1103+
input: model.limit?.input ?? existingModel?.limit?.input,
11031104
output: model.limit?.output ?? existingModel?.limit?.output ?? 0,
11041105
},
11051106
headers: mergeDeep(existingModel?.headers ?? {}, model.headers ?? {}),

0 commit comments

Comments
 (0)