Interface LmChatOpenAiNodeParameters

Source
interface LmChatOpenAiNodeParameters {
    model?:
        | string
        | { mode: "id"
        | "list"; value: string };
    options?: {
        baseURL?: string;
        frequencyPenalty?: number;
        maxRetries?: number;
        maxTokens?: number;
        presencePenalty?: number;
        reasoningEffort?: "low" | "high" | "medium";
        responseFormat?: "text" | "json_object";
        temperature?: number;
        timeout?: number;
        topP?: number;
    };
}

Properties§

Source§

readonly model?: string | { mode: "id" | "list"; value: string }

The model which will generate the completion. Learn more. Default: "gpt-4o-mini" Type options: {"loadOptions":{"routing":{"request":{"method":"GET","url":"={{ $parameter.options?.baseURL?.split("/").slice(-1).pop() || $credentials?.url?.split("/").slice(-1).pop() || "v1" }}/models"},"output":{"postReceive":[{"type":"rootProperty","properties":{"property":"data"}},{"type":"filter","properties":{"pass":"={{\n\t\t\t\t\t\t\t\t\t\t\t\t($parameter.options?.baseURL && !$parameter.options?.baseURL?.startsWith('https://api.openai.com/')) ||\n\t\t\t\t\t\t\t\t\t\t\t\t($credentials?.url && !$credentials.url.startsWith('https://api.openai.com/')) ||\n\t\t\t\t\t\t\t\t\t\t\t\t$responseItem.id.startsWith('ft:') ||\n\t\t\t\t\t\t\t\t\t\t\t\t$responseItem.id.startsWith('o1') ||\n\t\t\t\t\t\t\t\t\t\t\t\t$responseItem.id.startsWith('o3') ||\n\t\t\t\t\t\t\t\t\t\t\t\t($responseItem.id.startsWith('gpt-') && !$responseItem.id.includes('instruct'))\n\t\t\t\t\t\t\t\t\t\t\t}}"}},{"type":"setKeyValue","properties":{"name":"={{$responseItem.id}}","value":"={{$responseItem.id}}"}},{"type":"sort","properties":{"key":"name"}}]}}}}

Source§

readonly options?: {
    baseURL?: string;
    frequencyPenalty?: number;
    maxRetries?: number;
    maxTokens?: number;
    presencePenalty?: number;
    reasoningEffort?: "low" | "high" | "medium";
    responseFormat?: "text" | "json_object";
    temperature?: number;
    timeout?: number;
    topP?: number;
}

Additional options to add Default: {}