microsoft / azurechat

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

Citations to Chat with file #246

Closed thivy closed 11 months ago

thivy commented 11 months ago

This pull request includes a variety of changes to improve the functionality and usability of the codebase. The most important changes include adding a new sheet component to display content in a modal-like interface, adding error handling to the chat menu, improving the code quality and readability of several components, and updating import paths for various components.

Main interface changes:

Chat menu improvements:

Code quality improvements:

Documentation improvements:

Styling improvements:

Component import updates:

superpoussin22 commented 11 months ago

@thivy testing it in my env : I got an error message in logs : " error_OpenAIError: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' })." and the interface no more works : I cant send a prompt to the openai instance.

The main branch is working fine

thivy commented 11 months ago

OPENAI_API_KEY

We added the latest OpenAI JS SDK which requires OPENAI_API_KEY environment variable name. Will update the documentation

https://github.com/openai/openai-node#usage

superpoussin22 commented 11 months ago

that's clear thanks @thivy Need to adapt the bicep too