Perplexica/ui/app
haddadrm 2133bebc90 Implemented a solution to properly format provider
names in the dropdown menus:

1. Created a formatProviderName utility function in ui/lib/utils.ts that:

-Contains a comprehensive mapping of provider keys to their properly
formatted display names
-Handles current providers like "openai" → "OpenAI" and "lm_studio" → "LM Studio"
-Includes future-proofing for many additional providers like NVIDIA,
OpenRouter, Mistral AI, etc.
-Provides a fallback formatting mechanism for any unknown providers
(replacing underscores with spaces and capitalizing each word)

2. Updated both dropdown menus in the settings page to use this function:

-The Chat Model Provider dropdown now displays properly formatted names
-The Embedding Model Provider dropdown also uses the same formatting

This is a purely aesthetic change that improves the UI by displaying
provider names with proper capitalization and spacing that matches
their official branding. The internal values and functionality remain
unchanged since only the display labels were modified.

The app will now show properly formatted provider names like "OpenAI",
"LM Studio", and "DeepSeek" instead of "Openai", "Lm_studio", and "Deepseek".
2025-02-26 07:32:48 +04:00
..
c/[chatId] feat(app): implement library feature 2024-06-29 11:09:51 +05:30
discover Discover Page Optimization 2025-02-25 23:27:56 +04:00
library Made enhancements to the library interface! 2025-02-25 13:30:35 +04:00
settings Implemented a solution to properly format provider 2025-02-26 07:32:48 +04:00
favicon.ico Initial commit 2024-04-09 16:21:05 +05:30
globals.css Discover Section Improvements 2025-02-25 20:22:48 +04:00
layout.tsx feat(toast): fix theme colors 2024-07-25 20:33:56 +05:30
page.tsx feat(app): add suspense boundary 2024-05-11 21:19:38 +05:30