fix: update terminology from 'multimodal recognition' to 'OCR text recognition'
This commit is contained in:
parent
95d8f03c48
commit
ff2d2bf290
@ -267,7 +267,8 @@ async function recognizeImage(token, imageId, request) {
|
|||||||
console.error('Prompt解码错误:', error);
|
console.error('Prompt解码错误:', error);
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultPrompt = '请识别图片中的内容,注意以下要求:\n' +
|
const defaultPrompt =
|
||||||
|
'不要输出任何额外的解释或说明,禁止输出例如:识别内容、以上内容已严格按照要求进行格式化和转换等相关无意义的文字!' + '请识别图片中的内容,注意以下要求:\n' +
|
||||||
'对于数学公式和普通文本:\n' +
|
'对于数学公式和普通文本:\n' +
|
||||||
'1. 所有数学公式和数学符号都必须使用标准的LaTeX格式\n' +
|
'1. 所有数学公式和数学符号都必须使用标准的LaTeX格式\n' +
|
||||||
'2. 行内公式使用单个$符号包裹,如:$x^2$\n' +
|
'2. 行内公式使用单个$符号包裹,如:$x^2$\n' +
|
||||||
@ -281,8 +282,7 @@ async function recognizeImage(token, imageId, request) {
|
|||||||
'2. 忽略干扰线和噪点\n' +
|
'2. 忽略干扰线和噪点\n' +
|
||||||
'3. 注意区分相似字符,如0和O、1和l、2和Z等\n' +
|
'3. 注意区分相似字符,如0和O、1和l、2和Z等\n' +
|
||||||
'4. 验证码通常为4-6位字母数字组合\n\n' +
|
'4. 验证码通常为4-6位字母数字组合\n\n' +
|
||||||
'不要输出任何额外的解释或说明';
|
'';
|
||||||
|
|
||||||
const response = await fetch('https://chat.qwenlm.ai/api/chat/completions', {
|
const response = await fetch('https://chat.qwenlm.ai/api/chat/completions', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user