mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Default to the full context window
This commit is contained in:
@@ -69,7 +69,7 @@ function modelDescriptionToDLLMOpenAIOptions<TSourceSetup, TLLMOptions>(model: M
|
||||
// null means unknown contenxt/output tokens
|
||||
const contextTokens = model.contextWindow || null;
|
||||
const maxOutputTokens = model.maxCompletionTokens || (contextTokens ? Math.round(contextTokens / 2) : null);
|
||||
const llmResponseTokensRatio = model.maxCompletionTokens ? 1 / 2 : 1 / 4;
|
||||
const llmResponseTokensRatio = model.maxCompletionTokens ? 1 : 1 / 4;
|
||||
const llmResponseTokens = maxOutputTokens ? Math.round(maxOutputTokens * llmResponseTokensRatio) : null;
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user