max token rename
All checks were successful
Publish Library / Build NPM Project (push) Successful in 35s
Publish Library / Tag Version (push) Successful in 14s

This commit is contained in:
2026-08-05 16:16:30 -04:00
parent 04f038ba65
commit 7308927a3c
5 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ export class Anthropic extends LLMProvider {
const tools = options.tools || this.ai.options.llm?.tools || [];
const requestParams: any = {
model: options.model || this.model,
max_tokens: options.max_tokens || this.ai.options.llm?.max_tokens || 4096,
max_tokens: options.maxTokens || this.ai.options.llm?.maxTokens || 4096,
system: options.system || this.ai.options.llm?.system || '',
temperature: options.temperature || this.ai.options.llm?.temperature || undefined,
tools: tools.map(t => ({

View File

@@ -67,7 +67,7 @@ export type LLMRequest = {
/** Message history */
history?: LLMMessage[];
/** Max tokens for request */
max_tokens?: number;
maxTokens?: number;
/** 0 = Rigid Logic, 1 = Balanced, 2 = Hyper Creative **/
temperature?: number;
/** Available tools */

View File

@@ -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',