Skip to content

Commit

Permalink
Merge pull request #190 from nulib/chat-env-prefix
Browse files Browse the repository at this point in the history
Add optional index prefix to chat handler
  • Loading branch information
bmquinn authored Mar 11, 2024
2 parents 7f9b6ac + da668d2 commit f9f0f4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chat/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Parameters:
AzureOpenaiResourceName:
Type: String
Description: Azure OpenAI Resource Name
EnvironmentPrefix:
Type: String
Description: Prefix for Index names
Default: ""
OpenSearchEndpoint:
Type: String
Description: OpenSearch Endpoint
Expand Down Expand Up @@ -198,6 +202,7 @@ Resources:
AZURE_OPENAI_API_KEY: !Ref AzureOpenaiApiKey
AZURE_OPENAI_LLM_DEPLOYMENT_ID: !Ref AzureOpenaiLlmDeploymentId
AZURE_OPENAI_RESOURCE_NAME: !Ref AzureOpenaiResourceName
ENV_PREFIX: !Ref EnvironmentPrefix
OPENSEARCH_ENDPOINT: !Ref OpenSearchEndpoint
OPENSEARCH_MODEL_ID: !Ref OpenSearchModelId
Policies:
Expand Down
1 change: 1 addition & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ Resources:
AzureOpenaiApiKey: !Ref AzureOpenaiApiKey
AzureOpenaiLlmDeploymentId: !Ref AzureOpenaiLlmDeploymentId
AzureOpenaiResourceName: !Ref AzureOpenaiResourceName
EnvironmentPrefix: !Ref EnvironmentPrefix
OpenSearchEndpoint: !Ref OpenSearchEndpoint
OpenSearchModelId: !Ref OpenSearchModelId
chatWebsocketEndpoint:
Expand Down

0 comments on commit f9f0f4c

Please sign in to comment.