fix: pass options to compact (#3136)

This commit is contained in:
Aiden Cline 2025-10-13 10:42:39 -05:00 committed by GitHub
parent 5885b691b9
commit 53d9717d90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 => ({