Merge branch 'main' of github.com:topoteretes/cognee-private into COG-502-backend-error-handling
This commit is contained in:
commit
204b5e9fe1
5 changed files with 9 additions and 2 deletions
1
.github/workflows/test_python_3_10.yml
vendored
1
.github/workflows/test_python_3_10.yml
vendored
|
|
@ -13,6 +13,7 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUNTIME__LOG_LEVEL: ERROR
|
RUNTIME__LOG_LEVEL: ERROR
|
||||||
|
ENV: 'dev'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get_docs_changes:
|
get_docs_changes:
|
||||||
|
|
|
||||||
1
.github/workflows/test_python_3_11.yml
vendored
1
.github/workflows/test_python_3_11.yml
vendored
|
|
@ -13,6 +13,7 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUNTIME__LOG_LEVEL: ERROR
|
RUNTIME__LOG_LEVEL: ERROR
|
||||||
|
ENV: 'dev'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get_docs_changes:
|
get_docs_changes:
|
||||||
|
|
|
||||||
1
.github/workflows/test_python_3_9.yml
vendored
1
.github/workflows/test_python_3_9.yml
vendored
|
|
@ -13,6 +13,7 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUNTIME__LOG_LEVEL: ERROR
|
RUNTIME__LOG_LEVEL: ERROR
|
||||||
|
ENV: 'dev'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get_docs_changes:
|
get_docs_changes:
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,3 @@ async def create_db_and_tables():
|
||||||
await vector_engine.create_database()
|
await vector_engine.create_database()
|
||||||
async with vector_engine.engine.begin() as connection:
|
async with vector_engine.engine.begin() as connection:
|
||||||
await connection.execute(text("CREATE EXTENSION IF NOT EXISTS vector;"))
|
await connection.execute(text("CREATE EXTENSION IF NOT EXISTS vector;"))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,9 @@ class OpenAIAdapter(LLMInterface):
|
||||||
transcription = litellm.transcription(
|
transcription = litellm.transcription(
|
||||||
model = self.transcription_model,
|
model = self.transcription_model,
|
||||||
file = Path(input),
|
file = Path(input),
|
||||||
|
api_key=self.api_key,
|
||||||
|
api_base=self.endpoint,
|
||||||
|
api_version=self.api_version,
|
||||||
max_retries = 5,
|
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_tokens = 300,
|
||||||
max_retries = 5,
|
max_retries = 5,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue