OpenAI-Compatible Chat Model
ai.lm_chat_openai_compatible · version 1 · AI sub-node
Any server that speaks the OpenAI Chat Completions protocol (vLLM, LM Studio, LocalAI, …).
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| output 0 | ai_languageModel |
Credentials
| Slot | Accepted kinds | Required |
|---|---|---|
openAiCompatibleApi | openai_compatible/api |
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
model | string | yes | Identifier of the model to call, as listed by the provider. Values from lookup openai_compatible.models. | ||
options | collection | {} | Optional settings. | ||
options.temperature | number | Sampling Temperature. Higher values make answers more varied; lower values more deterministic. | |||
options.maxTokens | number | Maximum Tokens. Upper bound on the number of tokens the model may generate. | |||
options.topP | number | Top P. Nucleus sampling: only consider tokens within this cumulative probability. | |||
options.frequencyPenalty | number | Frequency Penalty. Discourage repeating the same tokens. | |||
options.presencePenalty | number | Presence Penalty. Encourage the model to introduce new topics. | |||
options.responseFormat | options | "text" | Response Format. Ask the model for free text or for a JSON object. One of text, json_object. | ||
options.baseURL | string | Base URL. Send requests to this API root instead of the provider default. | |||
options.timeout | number | 600000 | Timeout (ms). Give up on a single request after this many milliseconds. | ||
options.maxRetries | number | 2 | Max Retries. How many times to retry after rate limiting or a server error. |
Import
No exported node type imports to this node.