-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: gpt4 is not available for brains if there is no given openAiKey #850
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LOGAF Level 2 - /home/runner/work/quivr/quivr/frontend/lib/context/BrainConfigProvider/brain-config-provider.tsx
Example: const updateConfig = (newConfig: Partial<BrainConfig>) => {
setBrainConfig((config) => {
const updatedConfig = { ...config, ...removeUndefined(newConfig) };
saveBrainConfigInLocalStorage(updatedConfig);
return updatedConfig;
});
};
Example: const resetConfig = () => {
setBrainConfig(defaultBrainConfig);
}; LOGAF Level 3 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ChatInput/components/ConfigModal/ConfigModal.tsx
Example: const onSubmit = (e) => {
void handleSubmit(e);
setIsConfigModalOpen(false);
};
// In your JSX
<form onSubmit={onSubmit} className="mt-10 flex flex-col items-center gap-2"> LOGAF Level 2 - /home/runner/work/quivr/quivr/backend/core/models/brains.py 1. Exposed API Key: The 2. Code Duplication: The 3. TODO Comments: There are TODO comments indicating that some methods should be moved to a new 4. Magic Strings: There are several magic strings (e.g., 5. Error Handling: There is no error handling in the 🔒🔧🔄 Powered by Code Review GPT |
…#850) * rename defineMaxToken * use gpt-3.5-turbo instead of gpt-3.5-turbo-0613 * gpt4 not available if no open ai key
Description
Checklist before requesting a review
Please delete options that are not relevant.
Screenshots (if appropriate):