feat(新功能):

fix(修复bug):  sketch拉伸导致的print比例不正确问题
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhouchengrong
2025-02-07 14:46:07 +08:00
parent 5e9101e77d
commit 89e39e37ae

View File

@@ -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)