You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`create(ai_config: AIConfigKind, logger: Optional[Any] = None) -> OpenAIProvider` - Factory method to create a provider from an AI config
61
+
-`get_ai_metrics_from_response(response: Any) -> LDAIMetrics` - Extract metrics from an OpenAI response
62
+
63
+
#### Instance Methods
64
+
65
+
-`invoke_model(messages: List[LDMessage]) -> ChatResponse` - Invoke the model with messages
66
+
-`invoke_structured_model(messages: List[LDMessage], response_structure: Dict[str, Any]) -> StructuredResponse` - Invoke the model with structured output
67
+
-`get_client() -> OpenAI` - Get the underlying OpenAI client
0 commit comments