SDK不使用のFetch+SSEでOpenAI・Anthropic・Geminiを統一呼び出し A walkthrough of calling OpenAI, Anthropic and Gemini LLMs through a unified interface usi…
AI要約 OpenAI、Anthropic、GeminiのLLMをSDKに依存せず、Fetch APIとServer-Sent Eventsだけで統一インターフェースから呼び出す手法を解説。各社のレスポンス形式の違いを吸収し、ストリーミング処理を共通化する実装例を示している。
EN A walkthrough of calling OpenAI, Anthropic and Gemini LLMs through a unified interface using only the Fetch API and Server-Sent Events, without vendor SDKs. The post shows how to normalize each provider's streaming response format into a common abstraction.
og