starflow/providers
Types
Functions
pub fn url(provider: Provider) -> String
Returns the base URL for the API of the specified provider.
Examples
url(Anthropic) // Returns "https://api.anthropic.com/v1"
Provider URLs
- Anthropic: https://api.anthropic.com/v1
pub fn version(provider: Provider) -> String
Returns the API version string required by the specified provider.
This version identifier is used in API request headers to ensure compatibility with the provider’s API.
Examples
version(Anthropic) // Returns "2023-06-01"
Provider Versions
- Anthropic: 2023-06-01 (Claude API version)