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
..
2024-12-07 00:23:53 +05:30
2024-12-16 19:47:18 +05:30
2024-12-08 02:12:02 +05:30
2024-09-25 19:54:09 +01:00
2024-12-01 15:17:02 -05:00
2024-09-25 19:54:09 +01:00
2024-12-04 20:51:27 +02:00