Computes and compares provider endpoints for LLM configurations, normalizing URLs and handling aliases.
# Source: https://github.com/kstevica/captain-claw | License: MIT | Copyright 2026 Stevica Kuharski # Provided via justclaw.it.com; keep this notice with the code. """Where a model config talks to: the identity of a provider endpoint. A key belongs to its endpoint — a provider plus its (custom or own) base URL. Flight Deck's spawn resolution and the agent-side ``flight_deck`` tool both have to decide whether two model configs are "the same place" before one's key may travel with the other; they share this one rule so they cannot disagree. Deliberately dependency-free: the tool imports it inside agents. """ from __future__ import annotations # A provider's own endpoint, as some configs spell it out (Freebie agents always # write OpenRouter's): the same place as no base_url at all. PROVI ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key