microsoft / azurechat

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

Unable to create prompt templates #385

Open na20aak-herts opened 4 months ago

na20aak-herts commented 4 months ago

I have deployed the solution and am trying to create a prompt template but I am getting the error below, I have added all the required variables too but am still unable to create the prompt templates. Can anyone please advise on how to fix this? Any help is greatly appreciated. Thanks!

image

image

na20aak-herts commented 4 months ago

It's working now. I never realised that you have to be an admin to create prompt templates, is this the case for everyone else?

vlad-tsoy commented 4 months ago

Our users don't use this feature AFAIK, but it makes sense since these prompts are global, so you want to manage who is able to create the prompt.

FlorianSchloesser commented 2 weeks ago

Yes you need to be an admin by default to create prompts.

I have disabled this. My users can create their own prompts - but cannot publish them - only admins can do that. I think this is the most sensible approach. Changed the prompt-service.ts in just this way: image image

FlorianSchloesser commented 4 days ago

@na20aak-herts