feat(新功能):
fix(修复bug): sketch拉伸导致的print比例不正确问题 docs(文档变更): refactor(重构): test(增加测试):
This commit is contained in:
@@ -106,7 +106,7 @@ def get_translation_from_llama3(text):
|
|||||||
"prompt": f"[{text}]",
|
"prompt": f"[{text}]",
|
||||||
"stream": False
|
"stream": False
|
||||||
}
|
}
|
||||||
|
logger.info(f"translation start ********************* {text}")
|
||||||
# 将负载转换为 JSON 格式
|
# 将负载转换为 JSON 格式
|
||||||
headers = {'Content-Type': 'application/json'}
|
headers = {'Content-Type': 'application/json'}
|
||||||
response = requests.post(url, data=json.dumps(payload), headers=headers)
|
response = requests.post(url, data=json.dumps(payload), headers=headers)
|
||||||
|
|||||||
Reference in New Issue
Block a user