mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix: pass options to compact (#3136)
This commit is contained in:
parent
5885b691b9
commit
53d9717d90
@ -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…
x
Reference in New Issue
Block a user