bolt.diy/app/components/chat
Adithyan K 49bb17886a
fix: added ui indicator on how apikeys are set (UI/Env) for api-key-manager component (#732)
* fixed #333

* Added instruction in case api-key is not set.

* addressed some of the review changes:

1. moved function definiton to useCallback.
2. added a cache to store the env key status and the api call is made only on a cache miss.

* Manages the API-key entered via UI in a better way.

- Persist API keys in cookies when entered via UI
- Automatically load saved keys when switching between providers
- Preserve existing functionality for environment variable based keys

* Re-used map from utils/constants file.

* Code cleanup -  Removed redundant API key init in BaseChat as its already handled by APIKeyManager component.
2025-01-10 21:26:31 +05:30
..
chatExportAndImport docs: bugfix/formatting faq docs (#1027) 2025-01-10 21:17:32 +05:30
APIKeyManager.tsx fix: added ui indicator on how apikeys are set (UI/Env) for api-key-manager component (#732) 2025-01-10 21:26:31 +05:30
Artifact.tsx fix: artifact loop fix 2024-12-07 00:23:53 +05:30
AssistantMessage.tsx updated implementation 2024-12-16 19:47:18 +05:30
BaseChat.module.scss updated theme color 2024-12-08 02:12:02 +05:30
BaseChat.tsx fix: added ui indicator on how apikeys are set (UI/Env) for api-key-manager component (#732) 2025-01-10 21:26:31 +05:30
Chat.client.tsx fix: show warning on starter template failure and continue (#960) 2025-01-01 13:39:09 +05:30
ChatAlert.tsx feat: catch errors from web container preview and show in actionable alert so user can send them to AI for fixing (#856) 2024-12-25 03:05:44 +05:30
CodeBlock.module.scss fix: remove monorepo 2024-09-25 19:54:09 +01:00
CodeBlock.tsx Fixed theming of Copy Code button 2024-12-16 18:21:30 +01:00
ExamplePrompts.tsx pre commit lint 2024-12-01 15:17:02 -05:00
FilePreview.tsx adjusting spaces for X button in file-preview 2024-11-30 00:04:53 -05:00
GitCloneButton.tsx fix: introduce our own cors proxy for git import to fix 403 errors on isometric git cors proxy (#924) 2025-01-05 17:26:02 +05:30
ImportFolderButton.tsx fix: import folder filtering 2024-12-29 20:21:49 -06:00
Markdown.module.scss fix: remove monorepo 2024-09-25 19:54:09 +01:00
Markdown.spec.ts [fix]: artifact actionlist rendering in chat 2024-11-26 15:45:49 +05:30
Markdown.tsx [fix]: artifact actionlist rendering in chat 2024-11-26 15:45:49 +05:30
Messages.client.tsx feat: added Automatic Code Template Detection And Import (#867) 2024-12-29 15:52:37 +05:30
ModelSelector.tsx fix: better model loading ui feedback and model list update (#954) 2024-12-31 19:22:46 +05:30
ScreenshotStateManager.tsx Initial commit for screen cap feature 2024-12-05 17:30:45 -05:00
SendButton.client.tsx Refactor to use newver v4 version of Vercel AI package 2024-12-09 17:26:33 +02:00
SpeechRecognition.tsx Split code a little bit 2024-12-04 20:51:27 +02:00
StarterTemplates.tsx feat: add Starter template menu in homepage (#884) 2024-12-24 22:37:28 +05:30
UserMessage.tsx Another attempt to add toek usage info 2024-12-16 11:01:41 +02:00