OpenAI Chat Completions
A conversational completion API interface provided by OpenAI that supports both streaming and non-streaming responses. Usage data in streaming mode must be enabled through stream_options.
Core Facts
@ai-sdk/openai-compatible is the common compatibility layer for many OpenAI-compatible model services, and changes to its version may affect multiple provider adapter packages at once.
openai-compatible is a kind of "protocol adapter base" that lets any vendor following the OpenAI Chat Completions interface style (Z.ai, DeepSeek, Together, etc.) integrate with very little code.
ZAI chose to take the OpenAI-compatible path; the benefit is fast integration and a small maintenance surface, and the cost is the inability to expose unique capabilities beyond the OpenAI protocol.
Timeline (last 90 days)
The system prompt is a special instruction passed separately from user messages in a conversation API, usually located at the very front of the message list, and in OpenAI's Chat Completions interface it corresponds to the message whose role is "system".
openai-compatible is a kind of "protocol adapter base" that lets any vendor following the OpenAI Chat Completions interface style (Z.ai, DeepSeek, Together, etc.) integrate with very little code.
The role of AgentScope's Message has three values: User, System, and Agent, corresponding to the user, system, and assistant role conventions in the OpenAI Chat Completions protocol.
@ai-sdk/openai-compatible is the common compatibility layer for many OpenAI-compatible model services, and changes to its version may affect multiple provider adapter packages at once.
The strict sequence requirement of the tool-calling API is that every tool_call must be immediately followed by a tool message with a matching id, otherwise the server may return a 400 error or behave undefinedly.
For the same MiniMax M3.1 Flash model, the effort field is named reasoning_effort, output_config.effort, and reasoning.effort under the OpenAI Chat Completions, Anthropic Messages, and OpenAI Responses protocols respectively; all three accept the five values low/medium/high/xhigh/max, and all default to max.
Using the three environment variables OPENAI_API_KEY, OPENAI_BASE_URL and OPENAI_MODEL, Qwen Code can be configured to connect to a custom OpenAI-compatible API without a configuration file.
Qwen Code is a terminal coding agent launched by the Tongyi team, originally forked from Gemini CLI and switched to the OpenAI Chat Completions protocol.
The OpenAI Chat Completions protocol is currently the de facto standard for LLM inference access; mainstream self-hosted frameworks such as vLLM, Ollama and LiteLLM all implement it, and their common trait is exposing a /v1/chat/completions endpoint and accepting Bearer authentication.
Strata is compatible with the OpenAI Chat Completions interface specification; point the base URL to local port 8080 and fill in any key to use it.
5 more timeline events
All Facts (16)
@ai-sdk/openai-compatible is the common compatibility layer for many OpenAI-compatible model services, and changes to its version may affect multiple provider adapter packages at once.
85%Verifiedopenai-compatible is a kind of "protocol adapter base" that lets any vendor following the OpenAI Chat Completions interface style (Z.ai, DeepSeek, Together, etc.) integrate with very little code.
75%VerifiedZAI chose to take the OpenAI-compatible path; the benefit is fast integration and a small maintenance surface, and the cost is the inability to expose unique capabilities beyond the OpenAI protocol.
75%VerifiedThe openai-compatible package encapsulates common logic such as request construction, streaming SSE parsing, and function/tool calling, allowing providers to connect simply by configuring the endpoint and authentication method.
75%VerifiedClaude uses the Anthropic Messages API format, while the GPT series uses the OpenAI Chat Completions format, and the two have fundamentally different interface specifications.
65%UnverifiedIn traditional interfaces such as OpenAI Chat Completions, messages with the system role are usually conventionally placed at the very front of the message array, as the global setting for the entire session.
70%UnverifiedOllama's interface design is highly compatible with OpenAI's /v1/chat/completions specification.
70%UnverifiedThe system prompt is a special instruction passed separately from user messages in a conversation API, usually located at the very front of the message list, and in OpenAI's Chat Completions interface it corresponds to the message whose role is "system".
60%UnverifiedGLM (glm-4.5-air) is Zhipu AI's large language model series, called via the OpenAI-compatible API provided by Z.ai, with interface paths, request bodies, and response formats largely consistent with the OpenAI Chat Completions specification.
60%UnverifiedThe role of AgentScope's Message has three values: User, System, and Agent, corresponding to the user, system, and assistant role conventions in the OpenAI Chat Completions protocol.
50%UnverifiedThe strict sequence requirement of the tool-calling API is that every tool_call must be immediately followed by a tool message with a matching id, otherwise the server may return a 400 error or behave undefinedly.
50%UnverifiedFor the same MiniMax M3.1 Flash model, the effort field is named reasoning_effort, output_config.effort, and reasoning.effort under the OpenAI Chat Completions, Anthropic Messages, and OpenAI Responses protocols respectively; all three accept the five values low/medium/high/xhigh/max, and all default to max.
50%UnverifiedQwen Code is a terminal coding agent launched by the Tongyi team, originally forked from Gemini CLI and switched to the OpenAI Chat Completions protocol.
50%UnverifiedThe OpenAI Chat Completions protocol is currently the de facto standard for LLM inference access; mainstream self-hosted frameworks such as vLLM, Ollama and LiteLLM all implement it, and their common trait is exposing a /v1/chat/completions endpoint and accepting Bearer authentication.
50%UnverifiedUsing the three environment variables OPENAI_API_KEY, OPENAI_BASE_URL and OPENAI_MODEL, Qwen Code can be configured to connect to a custom OpenAI-compatible API without a configuration file.
50%UnverifiedStrata is compatible with the OpenAI Chat Completions interface specification; point the base URL to local port 8080 and fill in any key to use it.
50%