Skip to content

Commit 1cf81a2

Browse files
committed
fix(core) make modelConfiguration optional
1 parent cd61156 commit 1cf81a2

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)