mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Fix incomplete string escaping in public_model_hub.tsx
Use replaceAll() instead of replace() to ensure all occurrences of "*" are replaced, not just the first one. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d8e4fc4dd0
commit
21b0ff9662
1 changed files with 1 additions and 1 deletions
|
|
@ -1376,7 +1376,7 @@ const PublicModelHub: React.FC<PublicModelHubProps> = ({ accessToken, isEmbedded
|
|||
<code className="bg-blue-100 px-1 py-0.5 rounded text-xs">{selectedModel.model_group}</code>,
|
||||
you can use any string (
|
||||
<code className="bg-blue-100 px-1 py-0.5 rounded text-xs">
|
||||
{selectedModel.model_group.replace("*", "my-custom-value")}
|
||||
{selectedModel.model_group.replaceAll("*", "my-custom-value")}
|
||||
</code>
|
||||
) that matches this pattern.
|
||||
</Text>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue