Merge branch 'main' of github.com:topoteretes/cognee-private into COG-502-backend-error-handling

This commit is contained in:
Igor Ilic 2024-11-27 14:30:53 +01:00
commit 204b5e9fe1
5 changed files with 9 additions and 2 deletions

View file

@ -13,6 +13,7 @@ concurrency:
env:
RUNTIME__LOG_LEVEL: ERROR
ENV: 'dev'
jobs:
get_docs_changes:

View file

@ -13,6 +13,7 @@ concurrency:
env:
RUNTIME__LOG_LEVEL: ERROR
ENV: 'dev'
jobs:
get_docs_changes:

View file

@ -13,6 +13,7 @@ concurrency:
env:
RUNTIME__LOG_LEVEL: ERROR
ENV: 'dev'
jobs:
get_docs_changes:

View file

@ -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;"))

View file

@ -88,6 +88,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,
)
@ -113,6 +116,9 @@ class OpenAIAdapter(LLMInterface):
},
],
}],
api_key=self.api_key,
api_base=self.endpoint,
api_version=self.api_version,
max_tokens = 300,
max_retries = 5,
)