mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: pass options to compact (#3136)
This commit is contained in:
parent
5885b691b9
commit
53d9717d90
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,9 @@ export namespace SessionCompaction {
|
|||
const generated = await generateText({
|
||||
maxRetries: 10,
|
||||
model: model.language,
|
||||
providerOptions: {
|
||||
[model.npm === "@ai-sdk/openai" ? "openai" : model.providerID]: model.info.options,
|
||||
},
|
||||
messages: [
|
||||
...system.map(
|
||||
(x): ModelMessage => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue