OpenAI兼容API
Amazon Bedrock 提供的 OpenAI API 兼容层,允许现有 OpenAI SDK 调用逻辑平滑迁移至 Bedrock
Core Facts
Timeline (last 90 days)
The developer chose Kimi based on three key requirements: reasoning based on numbers rather than feelings, reliable JSON output, and an OpenAI-compatible API. Integration took only one afternoon, using plain fetch, with no SDK lock-in, and unit tests were done with a mocked fetch (resolver/test/kimi.test.ts).
The sharing tool starts a gateway on the local machine, exposing the local model externally as an OpenAI-compatible API interface for other devices on the LAN to call.
Bedrock 提供两种调用 OpenAI 模型的接口:Converse API(原生接口,支持多轮对话、工具调用和流式响应)和 OpenAI 兼容 API(减少从 OpenAI 平台迁移的代码改动)。
If an interface exposes multiple models under the same OpenAI-compatible base URL, building a fallback chain is a low-cost insurance mechanism.
Gateways often name models differently from the original vendors, and subtle discrepancies (such as a period written as a hyphen) can cause 404 model not found errors.
All Facts (6)
The core design of the OpenAI API uses /v1/chat/completions as the main endpoint.
80%UnverifiedThe developer chose Kimi based on three key requirements: reasoning based on numbers rather than feelings, reliable JSON output, and an OpenAI-compatible API. Integration took only one afternoon, using plain fetch, with no SDK lock-in, and unit tests were done with a mocked fetch (resolver/test/kimi.test.ts).
50%UnverifiedThe sharing tool starts a gateway on the local machine, exposing the local model externally as an OpenAI-compatible API interface for other devices on the LAN to call.
50%UnverifiedBedrock 提供两种调用 OpenAI 模型的接口:Converse API(原生接口,支持多轮对话、工具调用和流式响应)和 OpenAI 兼容 API(减少从 OpenAI 平台迁移的代码改动)。
50%UnverifiedIf an interface exposes multiple models under the same OpenAI-compatible base URL, building a fallback chain is a low-cost insurance mechanism.
50%UnverifiedGateways often name models differently from the original vendors, and subtle discrepancies (such as a period written as a hyphen) can cause 404 model not found errors.
50%