Skip to content

Commit 85dde60

Browse files
authored
Merge pull request elizaOS#1473 from Archethect/develop
fix(core) make modelConfiguration optional
2 parents ae5bf44 + 9dbba90 commit 85dde60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/generation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export async function generateText({
160160
modelConfiguration?.maxInputTokens ||
161161
models[provider].settings.maxInputTokens;
162162
const max_response_length =
163-
modelConfiguration.max_response_length ||
163+
modelConfiguration?.max_response_length ||
164164
models[provider].settings.maxOutputTokens;
165165

166166
const apiKey = runtime.token;

0 commit comments

Comments
 (0)