microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.59k stars 2.49k forks source link

Preconfigured Prompts (akin to ChatGPT and Copilot) and Input Text Hint via Environment Variables #803

Closed toby-llama closed 1 month ago

toby-llama commented 5 months ago

Motivation and Context

Description

Added the ability of the app service owner to configure prompt templates and have them be displayed. They are optional, if they do not exist they do not display or effect experience. These prompts will be displayed before the conversation starts and can be selected, when selected they will be submitted just like they behave in Chat GPT or in MS Copilot Bing Chat. They will also be displayed after the conversation begins to further provide creative prompt chaining if designed. The system prompt will determine successful ability to prompt chain. Additionally the Text Hint for what the user can enter into the chat input is also configurable now with the new Environment Variable.

Contribution Checklist

toby-llama commented 5 months ago

@microsoft-github-policy-service agree