fix(opencode): honor model limit.input overrides (#16306)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
pull/19470/merge
ykswang 2026-04-03 08:13:10 +08:00 committed by GitHub
parent 6e1400fc45
commit 7f45943a9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1100,6 +1100,7 @@ export namespace Provider {
options: mergeDeep(existingModel?.options ?? {}, model.options ?? {}),
limit: {
context: model.limit?.context ?? existingModel?.limit?.context ?? 0,
input: model.limit?.input ?? existingModel?.limit?.input,
output: model.limit?.output ?? existingModel?.limit?.output ?? 0,
},
headers: mergeDeep(existingModel?.headers ?? {}, model.headers ?? {}),