Skip to content

Commit 5f2e9b5

Browse files
authored
Merge branch 'develop' into tcm-twitter-duplicate-post
2 parents fe5d551 + 9f51923 commit 5f2e9b5

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)