mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
test: annotate anthropic messages parity markers
This commit is contained in:
parent
01366d9d5b
commit
22465ff70c
1 changed files with 2 additions and 0 deletions
|
|
@ -10,10 +10,12 @@ pub struct AnthropicMessagesConfig;
|
|||
|
||||
pub const ANTHROPIC_MESSAGES_CONFIG: AnthropicMessagesConfig = AnthropicMessagesConfig;
|
||||
|
||||
// rust-only: Option-normalization helper, Rust idiom
|
||||
pub fn non_empty(value: Option<&str>) -> Option<&str> {
|
||||
value.map(str::trim).filter(|value| !value.is_empty())
|
||||
}
|
||||
|
||||
// python-parity: validate_anthropic_messages_environment
|
||||
pub fn resolve_anthropic_api_key(
|
||||
api_key: Option<&str>,
|
||||
env_lookup: &dyn Fn(&str) -> Option<String>,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue