Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit 002b20e

Browse files
committed
Set proper response token limit
1 parent 009189b commit 002b20e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/azure-bot.ts

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class AzureBot implements BotProtocol {
3838

3939
this.model = new ChatOpenAI({
4040
temperature: options.openaiModelTemperature,
41+
maxTokens: openaiOptions.tokenLimits.responseTokens,
4142
azureOpenAIApiKey: process.env.AZURE_OPENAI_API_KEY,
4243
azureOpenAIApiVersion: options.azureApiVersion,
4344
azureOpenAIApiInstanceName: options.azureApiInstance,

0 commit comments

Comments
 (0)