max token rename
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ export class OpenAi extends LLMProvider {
|
||||
const requestParams: any = {
|
||||
model: options.model || this.model,
|
||||
stream: !!options.stream,
|
||||
max_completion_tokens: options.max_tokens || this.ai.options.llm?.max_tokens || undefined,
|
||||
max_completion_tokens: options.maxTokens || this.ai.options.llm?.maxTokens || undefined,
|
||||
temperature: options.temperature || this.ai.options.llm?.temperature || undefined,
|
||||
tools: tools.map(t => ({
|
||||
type: 'function',
|
||||
|
||||
Reference in New Issue
Block a user