Skip to content

Commit b78f607

Browse files
committed
revert mapping max_tokens to max_completion_tokens
1 parent cec221c commit b78f607

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/providers/azure-openai/chatComplete.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const AzureOpenAIChatCompleteConfig: ProviderConfig = {
2323
param: 'function_call',
2424
},
2525
max_tokens: {
26-
param: 'max_completion_tokens',
26+
param: 'max_tokens',
2727
default: 100,
2828
min: 0,
2929
},

src/providers/openai/chatComplete.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const OpenAIChatCompleteConfig: ProviderConfig = {
2525
param: 'function_call',
2626
},
2727
max_tokens: {
28-
param: 'max_completion_tokens',
28+
param: 'max_tokens',
2929
default: 100,
3030
min: 0,
3131
},

0 commit comments

Comments
 (0)