Skip to content

Commit

Permalink
Show which model name and provider is used in user message.
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyHolmberg committed Nov 8, 2024
1 parent 2a362b9 commit 9b97837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/chat/UserMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export function UserMessage({ content }: UserMessageProps) {
}

function sanitizeUserMessage(content: string) {
return content.replace(modificationsRegex, '').replace(MODEL_REGEX, '').replace(PROVIDER_REGEX, '').trim();
return content.replace(modificationsRegex, '').replace(MODEL_REGEX, 'Using: $1').replace(PROVIDER_REGEX, ' ($1)\n\n').trim();
}

0 comments on commit 9b97837

Please sign in to comment.