Skip to content

Commit

Permalink
feat: 删除原图水印
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Nov 12, 2023
1 parent a0ab02f commit 7b39a96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export function ChatMessage({ message, index, ...props }: ChatMessageProps) {
if (w && h) {
uri.searchParams.delete('w')
uri.searchParams.delete('h')
// delete watermark
uri.searchParams.delete('c')
uri.searchParams.delete('o')
return <a style={{ float: 'left', maxWidth: '50%' }} href={uri.toString()} target="_blank" rel="noopener noreferrer"><img src={obj.src} alt={obj.alt} width={w!} height={h!} /></a>
}
} catch (e) {
Expand Down
1 change: 1 addition & 0 deletions src/lib/bots/bing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export class BingWebBot {
conversationId: conversation.conversationId,
conversationSignature: conversation.conversationSignature,
participant: { id: conversation.clientId },
plugins: [],
scenario: 'SERP',
tone: conversation.conversationStyle
}
Expand Down

0 comments on commit 7b39a96

Please sign in to comment.