From 9193eca08b0f7462bef727ddc18177ebd3fd7717 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Mon, 25 Nov 2024 15:00:02 +0100 Subject: [PATCH 1/3] Trigger GitHub Actions --- .../databases/vector/pgvector/create_db_and_tables.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cognee/infrastructure/databases/vector/pgvector/create_db_and_tables.py b/cognee/infrastructure/databases/vector/pgvector/create_db_and_tables.py index ef27e2889..f40299939 100644 --- a/cognee/infrastructure/databases/vector/pgvector/create_db_and_tables.py +++ b/cognee/infrastructure/databases/vector/pgvector/create_db_and_tables.py @@ -10,5 +10,3 @@ async def create_db_and_tables(): await vector_engine.create_database() async with vector_engine.engine.begin() as connection: await connection.execute(text("CREATE EXTENSION IF NOT EXISTS vector;")) - - From 97dbede4c4377a7ebc6b99c89e80d5721121525b Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Mon, 25 Nov 2024 15:31:32 +0100 Subject: [PATCH 2/3] test: Add fix for telemetry issue in gh actions Set environment variable of ENV to dev for all jobs in workflows in GH actions --- .github/workflows/test_python_3_10.yml | 1 + .github/workflows/test_python_3_11.yml | 1 + .github/workflows/test_python_3_9.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/test_python_3_10.yml b/.github/workflows/test_python_3_10.yml index 7f762d778..5a4523853 100644 --- a/.github/workflows/test_python_3_10.yml +++ b/.github/workflows/test_python_3_10.yml @@ -13,6 +13,7 @@ concurrency: env: RUNTIME__LOG_LEVEL: ERROR + ENV: 'dev' jobs: get_docs_changes: diff --git a/.github/workflows/test_python_3_11.yml b/.github/workflows/test_python_3_11.yml index b05d901dc..9c79fb0ff 100644 --- a/.github/workflows/test_python_3_11.yml +++ b/.github/workflows/test_python_3_11.yml @@ -13,6 +13,7 @@ concurrency: env: RUNTIME__LOG_LEVEL: ERROR + ENV: 'dev' jobs: get_docs_changes: diff --git a/.github/workflows/test_python_3_9.yml b/.github/workflows/test_python_3_9.yml index 47c5ddc41..9c8456536 100644 --- a/.github/workflows/test_python_3_9.yml +++ b/.github/workflows/test_python_3_9.yml @@ -13,6 +13,7 @@ concurrency: env: RUNTIME__LOG_LEVEL: ERROR + ENV: 'dev' jobs: get_docs_changes: From 66c321f206a10e1191a7cdedc191cbecd22cc0f5 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Mon, 25 Nov 2024 17:32:11 +0100 Subject: [PATCH 3/3] fix: Add fix for getting transcription of audio and image from LLMs Enable getting of text from audio and image files from LLMs Fix --- cognee/infrastructure/llm/openai/adapter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cognee/infrastructure/llm/openai/adapter.py b/cognee/infrastructure/llm/openai/adapter.py index 28cdfff4e..1dc9b70f5 100644 --- a/cognee/infrastructure/llm/openai/adapter.py +++ b/cognee/infrastructure/llm/openai/adapter.py @@ -87,6 +87,9 @@ class OpenAIAdapter(LLMInterface): transcription = litellm.transcription( model = self.transcription_model, file = Path(input), + api_key=self.api_key, + api_base=self.endpoint, + api_version=self.api_version, max_retries = 5, ) @@ -112,6 +115,9 @@ class OpenAIAdapter(LLMInterface): }, ], }], + api_key=self.api_key, + api_base=self.endpoint, + api_version=self.api_version, max_tokens = 300, max_retries = 5, )