Skip to content

Commit

Permalink
修复图片识别错误
Browse files Browse the repository at this point in the history
  • Loading branch information
renqabs authored Nov 12, 2023
1 parent 6ec92c8 commit 83fa300
Showing 1 changed file with 1 addition and 1 deletion.
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, true)

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

0 comments on commit 83fa300

Please sign in to comment.