bdleavitt / chatgpt-on-azure

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
1 stars 0 forks source link

Feat add chatgpt UI issue13 #16

Closed bdleavitt closed 1 year ago

bdleavitt commented 1 year ago

Purpose

Adapts teh chat UI to call the Azure OpenAI api in a vanilla, chatGPT fashion for issue #13

Adds UI on frontend Adds chatgpt approach in frontend Adds chatgpt route in flask backend Adds chatpt approach in backend (converts frontend conversation history format into chat/completions messages format.

Includes system message to make the chatbot talk like a pirate (will change this later)

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Deploy and chat with the AI.

bdleavitt commented 1 year ago

@kjpap how do I delete the feature branch? I'm not smart.

kjpap commented 1 year ago

@bdleavitt Three ways: