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