You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[
{...},
{
"role": "user",
"content": "创建会员表 tool_calls"
},
{
"role": "assistant",
"content": "```json\n{\n\"name\": \"executeSql\",\n\"parameters\": {\n\"sql\": \"CREATE TABLE IF NOT EXISTS members (id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(100) UNIQUE NOT NULL, join_date DATE NOT NULL, membership_status VARCHAR(50) NOT NULL);\"\n }\n}\n```"
},
{
"role": "user",
"content": "创建老师表 tool_calls"
}
]
上述在“创建会员表 tool_calls”这里的时候,还可以稳定的输出
{"tool_calls":[ {"id": "call_0_0956d049-6667-411f-a5e0-2e421e488205", "type": "function", "function": {"name": "executeSql", "arguments": "{\"sql\": \"CREATE TABLE IF NOT EXISTS members (id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, email VARCHAR(255) UNIQUE NOT NULL, join_date DATE NOT NULL, membership_status VARCHAR(50) NOT NULL)\"}"}}]},
写了一个tool_calls,用来创建SQL的,但是在提问题的时候需要写到上特殊的标记,比如:
promt: 创建会员表 call executeSql 或者 创建会员表 tool_calls
用上述的提示词,第一次还能稳定生成
但是当message携带的内容多了之后,上述提示词就不起作用了,如下
上述在“创建会员表 tool_calls”这里的时候,还可以稳定的输出
但是在“创建老师表 tool_calls”的时候就无法输出tool_calls了,这个功能在GPT-4o上很稳定,这个能修复吗?或者添加一个指令,确保能稳定输出tool_calls,不然稳定性太差,线上的api都无法满足企业化需求
The text was updated successfully, but these errors were encountered: