Closed thivy closed 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
OPENAI_API_KEY
We added the latest OpenAI JS SDK which requires OPENAI_API_KEY environment variable name. Will update the documentation
that's clear thanks @thivy Need to adapt the bicep too
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:
src/components/ui/sheet.tsx
: Added a new sheet component to display content in a modal-like interface.Chat menu improvements:
src/features/chat/chat-menu/menu-items.tsx
: Added error handling to the chat menu and displays error messages using theuseGlobalMessageContext
hook. Changed thekey
prop of theMenuItem
component to use the index of the mapped array instead of the thread id. (Fa924a70)Code quality improvements:
src/components/ui/label.tsx
: Improved code quality and fixed export issue inLabel
component. [1] [2]src/components/ui/toaster.tsx
: Minor changes to improve the code quality and readability ofsrc/components/ui/toaster.tsx
. [1] [2] [3]Documentation improvements:
src/app/change-log/page.tsx
: ReplacedReactMarkdown
component with a customMarkdown
component and updated the file name and location forupdate.md
. [1] [2]src/app/change-log/update.md
: Added a new section for citations in the chat with file feature.docs/1-introduction.md
: Removed theLangChain JS
line from the introduction documentation.Styling improvements:
src/app/layout.tsx
: Added support for light theme by adding thelight
class to thehtml
element insrc/app/layout.tsx
.src/components/chat/chat-row.tsx
: Replaced theMemoizedReactMarkdown
component with theMarkdown
component and added theprose
class for styling insrc/components/chat/chat-row.tsx
. [1] [2]Component import updates:
src/app/chat/layout.tsx
: Updated import path forMainMenu
component insrc/app/chat/layout.tsx
.src/app/unauthorized/layout.tsx
: Updated import path and removed whitespace insrc/app/unauthorized/layout.tsx
. [1] [2]4R14)src/app/change-log/layout.tsx
: Updated import path forMainMenu
component insrc/app/change-log/layout.tsx
.src/app/reporting/layout.tsx
: Updated import statement forMainMenu
insrc/app/reporting/layout.tsx
.src/features/chat/chat-menu/chat-menu-container.tsx
: Updated import statement foruseMenuContext
inchat-menu-container.tsx
.src/components/chat/memoized-react-markdown.tsx
: Replaced theMemoizedReactMarkdown
component with theMarkdown
component.src/components/chat/markdown.tsx
: AddedMarkdown
component with dependencies and props.