Skip to content

Commit 9f51923

Browse files
authored
Merge pull request elizaOS#1473 from Archethect/develop
fix(core) make modelConfiguration optional
2 parents cd61156 + 1cf81a2 commit 9f51923

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)