Skip to content

Commit 871a6c9

Browse files
committed
chore: update msg
1 parent fd310ad commit 871a6c9

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

main.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,22 @@ async function recognize(base64, lang, options) {
3333
const body = {
3434
model,
3535
messages: [
36+
// {
37+
// "role": "system",
38+
// "content": [
39+
// {
40+
// "type": "text",
41+
// "text": customPrompt
42+
// }
43+
// ],
44+
// },
3645
{
37-
"role": "system",
46+
"role": "user",
3847
"content": [
3948
{
4049
"type": "text",
4150
"text": customPrompt
42-
}
43-
],
44-
},
45-
{
46-
"role": "user",
47-
"content": [
51+
},
4852
{
4953
"type": "image_url",
5054
"image_url": {

0 commit comments

Comments
 (0)