app/lib/hooks/usePromptEnhancer.ts: Imported ProviderInfo type and updated the usePromptEnhancer function to use ProviderInfo instead of a string for the provider parameter. [1][2]
app/routes/api.enhancer.ts: Imported ProviderInfo type and updated the enhancerAction function to use ProviderInfo instead of a string for the provider parameter. [1][2][3]
Consistency improvements:
app/routes/api.enhancer.ts: Updated the enhancerAction function to use providerName extracted from ProviderInfo and made minor formatting adjustments for consistency. [1][2]
Before:
https://github.com/user-attachments/assets/808a5fcc-17cf-4d2b-a679-9ae49f54a0dc
After fix:
https://github.com/user-attachments/assets/5df79e9b-7f25-4002-b7c3-9ed06b6643bb
Type safety improvements:
app/lib/hooks/usePromptEnhancer.ts
: ImportedProviderInfo
type and updated theusePromptEnhancer
function to useProviderInfo
instead of a string for theprovider
parameter. [1] [2]app/routes/api.enhancer.ts
: ImportedProviderInfo
type and updated theenhancerAction
function to useProviderInfo
instead of a string for theprovider
parameter. [1] [2] [3]Consistency improvements:
app/routes/api.enhancer.ts
: Updated theenhancerAction
function to useproviderName
extracted fromProviderInfo
and made minor formatting adjustments for consistency. [1] [2]