Repository navigation
v0.6.0
One simple way to ask, translated per provider. Only what you set is sent; max_tokens counts reasoning and answer together (Anthropic, which requires a cap, gets the model's largest output, or 4096); reasoning is unset, Off, or On(effort) with the effort sent as written. What the library knows about a model is one ModelInfo (price, largest output, context window), given by you or looked up by the provider, and it drives estimates, the price of token-only calls and Anthropic's cap. Every billed response is reported, retries are off by default, a request's timeout is one deadline, and long streams are no longer cut off after ten minutes. Anthropic now takes images and PDFs. The Claude subscription preset is removed. Breaking changes; see CHANGELOG.md for the full list.