// Aider (aider.chat) keeps its settings in ~/.aider.conf.yml and reaches // any OpenAI-compatible endpoint through litellm's openai/ prefix, so // magpie's model goes in as openai//, beside magpie's // address and the key magpie keeps for Aider. export const agent = { id: "aider", name: "Aider", // aider.chat's own icon, on the Agents page and the plugin's row icon: "https://aider.chat/assets/icons/apple-touch-icon.png", bin: "aider", config: "~/.aider.conf.yml", model: "model", prefix: "openai/", ua: ["aider", "litellm"], notice: "Aider reads its settings when it starts: restart it to use the new model.", } export function connect({ gateway }) { return { "openai-api-base": gateway.v1, "openai-api-key": gateway.key, // magpie's model ids aren't in litellm's list, so aider would warn on each "show-model-warnings": false, } }