Releases: facok/GPT-for-Annotation
Releases · facok/GPT-for-Annotation
1.1.1
加入对json结构化输出的支持。参考
本插件提供两种用法,一种是自己写好json,在前后加
@@@
{
"model": "gpt-4o-2024-08-06",
"messages": [
{
"role": "system",
"content": "You are a helpful math tutor."
},
{
"role": "user",
"content": "solve 8x + 31 = 2"
}
],
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "math_response",
"strict": true,
"schema": {
"type": "object",
"properties": {
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"explanation": {
"type": "string"
},
"output": {
"type": "string"
}
},
"required": ["explanation", "output"],
"additionalProperties": false
}
},
"final_answer": {
"type": "string"
}
},
"required": ["steps", "final_answer"],
"additionalProperties": false
}
}
}
}
@@@
然后提交
另一种是插件的简化方法,以 中括号 和 逗号 写出要求,然后以@@包裹,比如:
@@
[主题],[动作],[服装],[背景],[灯光]
@@
GPT-for-Annotation_1.1.0
GPT-for-Annotation_1.1.0
GPT-for-Annotation_1.0.8
plugin Create README.md