Skip to content

Commit

Permalink
Merge pull request #1473 from Archethect/develop
Browse files Browse the repository at this point in the history
fix(core) make modelConfiguration optional
  • Loading branch information
shakkernerd authored Dec 26, 2024
2 parents cd61156 + 1cf81a2 commit 9f51923
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 9f51923

Please sign in to comment.