调整为豆包,本地接口已废弃
This commit is contained in:
@@ -16,12 +16,12 @@ def extract_content(data_string):
|
|||||||
|
|
||||||
def message_task_json(prompt, content):
|
def message_task_json(prompt, content):
|
||||||
# 设置Authorization和URL
|
# 设置Authorization和URL
|
||||||
authorization = "46a5674a-e978-491b-a810-5d54605f2c36" # 请替换为真实的Authorization token
|
authorization = "Bearer b8586595-eb81-483d-8e91-a35cc789729e" # 请替换为真实的Authorization token
|
||||||
url = 'http://127.0.0.1:8080/v1/chat/completions'
|
url = 'https://ark.cn-beijing.volces.com/api/v3/chat/completions'
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
# "stream": True,
|
# "stream": True,
|
||||||
"model": "windsurf/gpt4o",
|
"model": "doubao-1-5-lite-32k-250115",
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
|
|||||||
Reference in New Issue
Block a user