five-on-it / apps/creator/src/model
apps/creator/src/model
What a creation runner says to a model and hears back, in the chat-completions shape OpenRouter speaks (OpenAI's): messages, function tools, the assistant's tool calls, and what a call cost. Three models speak it: OpenRouter's (openrouter.ts), Claude's on Anthropic's API (claude.ts, which turns it into Claude's own shape) and the scripted one the tests and FOI_CREATOR=fake run (fake-model.ts).