Codex CLIでParticle AI: Particle-1をどうやって使いますか?
particle-ai/particle-1Codex CLIは、UberLLMのResponses APIを介してParticle AI: Particle-1にアクセスします。~/.codex/config.tomlで、base_urlをhttps://api.uberllm.dev/v1とwire_api = "responses"に設定したモデルプロバイダーを追加し、あなたのUberLLMキーをUBERLLM_API_KEY環境変数に入れ、そしてmodelをparticle-ai/particle-1に設定します。 model_context_windowはParticle AI: Particle-1のコンテキストサイズである1,048,576に設定されています。なぜならCodexは、知っているOpenAIモデルのリスト外のモデルに対して272,000トークンを想定するからです。
model = "particle-ai/particle-1"
model_provider = "uberllm"
model_context_window = 1048576
web_search = "disabled"
[model_providers.uberllm]
name = "UberLLM"
base_url = "https://api.uberllm.dev/v1"
env_key = "UBERLLM_API_KEY"
wire_api = "responses"Codex CLIコール:OpenAI Responses API https://api.uberllm.dev/v1/responses · 完全なCodex CLIガイド
ull_your_key をあなたのUberLLMのAPIキーに置き換えてください。1つのキーで、すべてのツールとすべてのモデルが使えます。
API経由で、Particle AI: Particle-1は同じUberLLMキーとモデルID particle-ai/particle-1を使って、3つのアドレスで応答します:https://api.uberllm.dev/v1/chat/completionsのOpenAIチャット補完、https://api.uberllm.dev/v1/responsesのOpenAI Responses API、およびhttps://api.uberllm.dev/v1/messagesのAnthropic Messages API。