Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

672 B
Raw Blame
/** Fresh input per run: the translator may normalize its request object. */
export function createResponsesAssistantTurnInput() {
  return {
    input: [
      {
        type: "reasoning",
        content: [{ type: "reasoning_text", text: "Inspect first" }],
      },
      {
        type: "message",
        role: "assistant",
        content: [{ type: "output_text", text: "I will inspect" }],
      },
      { type: "function_call", call_id: "call_1", name: "read_file", arguments: "{}" },
      { type: "function_call", call_id: "call_2", name: "search", arguments: "{}" },
      { type: "function_call_output", call_id: "call_1", output: "contents" },
    ],
  };
}