fix(opencode): honor model limit.input overrides (#16306)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
@@ -1100,6 +1100,7 @@ export namespace Provider {
|
|||||||
options: mergeDeep(existingModel?.options ?? {}, model.options ?? {}),
|
options: mergeDeep(existingModel?.options ?? {}, model.options ?? {}),
|
||||||
limit: {
|
limit: {
|
||||||
context: model.limit?.context ?? existingModel?.limit?.context ?? 0,
|
context: model.limit?.context ?? existingModel?.limit?.context ?? 0,
|
||||||
|
input: model.limit?.input ?? existingModel?.limit?.input,
|
||||||
output: model.limit?.output ?? existingModel?.limit?.output ?? 0,
|
output: model.limit?.output ?? existingModel?.limit?.output ?? 0,
|
||||||
},
|
},
|
||||||
headers: mergeDeep(existingModel?.headers ?? {}, model.headers ?? {}),
|
headers: mergeDeep(existingModel?.headers ?? {}, model.headers ?? {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user