mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 09:00:32 +00:00
Limit max output tokens to 32k
This commit is contained in:
parent
9e50bb2c37
commit
cac353b3fe
2 changed files with 100 additions and 83 deletions
|
|
@ -117,7 +117,7 @@ function mapOptionsForApi<TApi extends Api>(
|
|||
): OptionsForApi<TApi> {
|
||||
const base = {
|
||||
temperature: options?.temperature,
|
||||
maxTokens: options?.maxTokens || model.maxTokens,
|
||||
maxTokens: options?.maxTokens || Math.min(model.maxTokens, 32000),
|
||||
signal: options?.signal,
|
||||
apiKey: apiKey || options?.apiKey,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue