|
|
|
@ -29,4 +29,10 @@ completion = client.chat.completions.create(
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
print(completion.choices[0].message.content)
|
|
|
|
|
print(completion.choices[0].message.content)
|
|
|
|
|
|
|
|
|
|
# 将返回的内容保存到 2、识别出结果.md 中
|
|
|
|
|
with open('2、识别出结果.md', 'w', encoding='utf-8') as f:
|
|
|
|
|
f.write(completion.choices[0].message.content)
|
|
|
|
|
|
|
|
|
|
print("保存成功!")
|