Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/weaigc/bingo
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Nov 19, 2023
2 parents 15be074 + 542615f commit 2889570
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ChatMessageModel } from '@/lib/bots/bing/types'
import { TurnCounter } from './turn-counter'
import { ChatFeedback } from './chat-feedback'
import { ChatProgress } from './chat-progress'

import './imagecreator.css'
export interface ChatMessageProps {
index: number
message: ChatMessageModel
Expand Down Expand Up @@ -56,7 +56,7 @@ export function ChatMessage({ message, index, ...props }: ChatMessageProps) {
// 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>
return <a style={{ float: 'left', maxWidth: '50%' }} href={uri.toString()} target="_blank" rel="noopener noreferrer"><img className='imagecreator' src={obj.src} alt={obj.alt} width={w!} height={h!} /></a>
}
} catch (e) {
}
Expand Down
9 changes: 9 additions & 0 deletions src/components/imagecreator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.imagecreator {
border-radius: 15px;
border: 6px solid transparent;
transition: transform 0.3s;
}

.imagecreator:hover {
transform: scale(1.1);
}
2 changes: 1 addition & 1 deletion src/pages/api/kblob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const config = {
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
try {
const { knowledgeRequest, imageBase64 } = req.body as KBlobRequest
const headers = createHeaders(req.cookies, false)
const headers = createHeaders(req.cookies)

const formData = new FormData()
formData.append('knowledgeRequest', JSON.stringify(knowledgeRequest))
Expand Down

0 comments on commit 2889570

Please sign in to comment.