IBM watsonx.ai embeddings wrapper.
Async decorator to catch ApiRequestFailure on Model Gateway calls.
Log a uniform warning when the Model Gateway is misused.
Extract params.
Decorator to catch ApiRequestFailure on Model Gateway calls.
Logs a uniform warning when the model is not properly registered.
Normalize deprecated 'apikey' to 'api_key'.
Resolve watsonx credentials.
Return default factory that yields a SecretStr from the first non-empty env var.
The factory:
names_priority).deprecated.Validate that scope (project_id or space_id) is provided when using model_id.