Function get_current_api_key
Source pub async fn get_current_api_key() -> Result<ApiKeyDetails, OpenRouterError>
Expand description
Retrieves information on the API key associated with the current authentication session.
§Returns
Result<api_keys::ApiKeyDetails, OpenRouterError>
- The details of the current API key.
§Example
let api_key_details = get_current_api_key().await?;
println!("{:?}", api_key_details);