Skip to content

Commit

Permalink
fix(core) make modelConfiguration optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Archethect committed Dec 26, 2024
1 parent cd61156 commit 1cf81a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export async function generateText({
modelConfiguration?.maxInputTokens ||
models[provider].settings.maxInputTokens;
const max_response_length =
modelConfiguration.max_response_length ||
modelConfiguration?.max_response_length ||
models[provider].settings.maxOutputTokens;

const apiKey = runtime.token;
Expand Down

0 comments on commit 1cf81a2

Please sign in to comment.