|
|
@@ -160,11 +160,6 @@ export namespace LLM {
|
|
|
...input.messages,
|
|
|
]
|
|
|
|
|
|
- const maxOutputTokens =
|
|
|
- isOpenaiOauth || provider.id.includes("github-copilot")
|
|
|
- ? undefined
|
|
|
- : ProviderTransform.maxOutputTokens(input.model)
|
|
|
-
|
|
|
const params = await Plugin.trigger(
|
|
|
"chat.params",
|
|
|
{
|
|
|
@@ -180,7 +175,7 @@ export namespace LLM {
|
|
|
: undefined,
|
|
|
topP: input.agent.topP ?? ProviderTransform.topP(input.model),
|
|
|
topK: ProviderTransform.topK(input.model),
|
|
|
- maxOutputTokens,
|
|
|
+ maxOutputTokens: ProviderTransform.maxOutputTokens(input.model),
|
|
|
options,
|
|
|
},
|
|
|
)
|