加入豆包AI :doubao-1-5-lite-32k-250115
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
|
||||
# 解析JSON
|
||||
def extract_content(data_string):
|
||||
try:
|
||||
@@ -15,8 +16,9 @@ def extract_content(data_string):
|
||||
|
||||
def message_summary(content):
|
||||
# 设置Authorization和URL
|
||||
authorization = "46a5674a-e978-491b-a810-5d54605f2c36" # 请替换为真实的Authorization token
|
||||
url = 'http://127.0.0.1:8080/v1/chat/completions'
|
||||
|
||||
authorization = "Bearer b8586595-eb81-483d-8e91-a35cc789729e" # 请替换为真实的Authorization token
|
||||
url = 'https://ark.cn-beijing.volces.com/api/v3/chat/completions'
|
||||
# 群聊精华总结生成指令
|
||||
prompt = """
|
||||
【基础要求】
|
||||
@@ -114,10 +116,9 @@ def message_summary(content):
|
||||
- 个性化适配:根据群成员特点,生成个性化头衔和角色。
|
||||
"""
|
||||
|
||||
|
||||
data = {
|
||||
# "stream": True,
|
||||
"model": "windsurf/gpt4o",
|
||||
"model": "doubao-1-5-lite-32k-250115",
|
||||
"messages": [
|
||||
{
|
||||
"role": "system",
|
||||
|
||||
Reference in New Issue
Block a user