microsoft / azurechat

🤖 💼 Azure Chat Solution Accelerator powered by Azure Open AI Service
MIT License
1.14k stars 954 forks source link

Unable to create prompt template #325

Closed Nihal-1512 closed 4 months ago

Nihal-1512 commented 4 months ago

I have successfully deployed the solution but I am getting an error when trying to create a prompt template. Anyone know how to fix this? I have also noticed that when trying to create a prompt template, it is titled as persona instead of prompt template.

image

sonphnt commented 4 months ago

Have you created config container in CosmosDB according to the migration guide? And yes, there is a UI bug with title "Persona" when creating a Prompt.

Nihal-1512 commented 4 months ago

Thanks for responding quick. The config container was automatically created when I deployed the solution and I did not do any of the additional steps in the migration guide.

Was I required to do the below? image

There is both a config and history container created in CosmosDB already

sonphnt commented 4 months ago

Yes, you need to update all new variables in the App Service - Configuration.

Nihal-1512 commented 4 months ago

Thanks for the help, I updated the variables and it is working now

jnxjent commented 2 months ago

Hi, I still face the problem "unable to create prompt" although the Configuration of App sevice as set below: AZURE_COSMOSDB_DB_NAME=chat AZURE_COSMOSDB_CONTAINER_NAME=history AZURE_COSMOSDB_CONFIG_CONTAINER_NAME=config I saved above setting and restart the app , but , nothing changed on AzureChat. Please advise what to do. Thanks!

na20aak-herts commented 1 month ago

@jnxjent I have the same issue, did you manage to fix the problem?