File tree Expand file tree Collapse file tree
packages/ai-providers/server-ai-openai/src/ldai_openai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ def __init__(
3737 self ._model_name = model_name
3838 self ._parameters = parameters
3939
40- # =============================================================================
41- # MAIN FACTORY METHOD
42- # =============================================================================
43-
4440 @staticmethod
4541 async def create (ai_config : AIConfigKind ) -> 'OpenAIProvider' :
4642 """
@@ -60,10 +56,6 @@ async def create(ai_config: AIConfigKind) -> 'OpenAIProvider':
6056
6157 return OpenAIProvider (client , model_name , parameters )
6258
63- # =============================================================================
64- # INSTANCE METHODS (AIProvider Implementation)
65- # =============================================================================
66-
6759 async def invoke_model (self , messages : List [LDMessage ]) -> ChatResponse :
6860 """
6961 Invoke the OpenAI model with an array of messages.
@@ -194,10 +186,6 @@ def get_client(self) -> AsyncOpenAI:
194186 """
195187 return self ._client
196188
197- # =============================================================================
198- # STATIC UTILITY METHODS
199- # =============================================================================
200-
201189 @staticmethod
202190 def get_ai_metrics_from_response (response : Any ) -> LDAIMetrics :
203191 """
You can’t perform that action at this time.
0 commit comments