From b6e82dfb4fc99af1df0fb73421d8d45244485e01 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:24:42 +0100 Subject: [PATCH] Update adapter.py --- cognee/infrastructure/llm/openai/adapter.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cognee/infrastructure/llm/openai/adapter.py b/cognee/infrastructure/llm/openai/adapter.py index 6ed5f3c48..7f12947fd 100644 --- a/cognee/infrastructure/llm/openai/adapter.py +++ b/cognee/infrastructure/llm/openai/adapter.py @@ -35,22 +35,7 @@ class OpenAIAdapter(LLMInterface): transcription_model: str, streaming: bool = False, ): - self.aclient = instructor.from_litellm(litellm.acompletion) - self.client = instructor.from_litellm(litellm.completion) - self.transcription_model = transcription_model - self.model = model - self.api_key = api_key - self.endpoint = endpoint - self.api_version = api_version - self.streaming = streaming - base_config = get_base_config() - - if base_config.monitoring_tool == MonitoringTool.LANGFUSE: - self.aclient.success_callback = ["langfuse"] - self.aclient.failure_callback = ["langfuse"] - self.client.success_callback = ["langfuse"] - self.client.failure_callback = ["langfuse"]