TommyAI commited on
Commit
9b97837
·
1 Parent(s): 2a362b9

Show which model name and provider is used in user message.

Browse files
app/components/chat/UserMessage.tsx CHANGED
@@ -17,5 +17,5 @@ export function UserMessage({ content }: UserMessageProps) {
17
  }
18
 
19
  function sanitizeUserMessage(content: string) {
20
- return content.replace(modificationsRegex, '').replace(MODEL_REGEX, '').replace(PROVIDER_REGEX, '').trim();
21
  }
 
17
  }
18
 
19
  function sanitizeUserMessage(content: string) {
20
+ return content.replace(modificationsRegex, '').replace(MODEL_REGEX, 'Using: $1').replace(PROVIDER_REGEX, ' ($1)\n\n').trim();
21
  }