mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 12:57:04 +00:00
Show which model name and provider is used in user message.
This commit is contained in:
parent
2a362b9e0b
commit
9b97837bb2
@ -17,5 +17,5 @@ export function UserMessage({ content }: UserMessageProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sanitizeUserMessage(content: string) {
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user