Skip to content

Commit

Permalink
No task db error on deployed apps (#915)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Seabock (Centific Technologies Inc) <[email protected]>
  • Loading branch information
iseabock and Ian Seabock (Centific Technologies Inc) committed Jun 11, 2024
1 parent 04ad733 commit 9323f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion backend/history/cosmosdbservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, cosmosdb_endpoint: str, credential: any, database_name: str,
async def ensure(self):
if not self.cosmosdb_client or not self.database_client or not self.container_client:
return False, "CosmosDB client not initialized correctly"

try:
database_info = await self.database_client.read()
except:
Expand Down
5 changes: 3 additions & 2 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class _ChatHistorySettings(BaseSettings):

database: str
account: str
account_key: str
account_key: Optional[str] = None
conversations_container: str
enable_feedback: bool = False

Expand Down Expand Up @@ -101,7 +101,7 @@ class _AzureOpenAISettings(BaseSettings):
)

model: str
key: str
key: Optional[str] = None
resource: Optional[str] = None
endpoint: Optional[str] = None
temperature: float = 0
Expand Down Expand Up @@ -200,6 +200,7 @@ class _SearchCommonSettings(BaseSettings):
include_contexts: Optional[List[str]] = ["citations", "intent"]
vectorization_dimensions: Optional[int] = None
role_information: str = Field(
default="You are an AI assistant that helps people find information.",
validation_alias="AZURE_OPENAI_SYSTEM_MESSAGE"
)

Expand Down

0 comments on commit 9323f6b

Please sign in to comment.