Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/llm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,8 @@ export abstract class BaseLLM implements ILLM {
return (
this.providerName === "openai" &&
typeof (this as any)._streamResponses === "function" &&
(this as any).isOSeriesOrGpt5Model(options.model)
(this as any).isOSeriesOrGpt5Model(options.model) &&
this._llmOptions.useLegacyCompletionsEndpoint !== true
);
}

Expand Down
1 change: 1 addition & 0 deletions docs/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ The `models` section defines the language models used in your configuration. Mod
- `stop`: An array of stop tokens that will terminate the completion.
- `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ and some Ollama models.
- `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
- `stream`: Boolean to enable/disable streaming for the model.

- `requestOptions`: HTTP request options specific to the model.

Expand Down
Loading