Skip to content

Commit 9f1f7d1

Browse files
committed
docs: Missing thinking process related parameters in model_setting #3134
1 parent ae30052 commit 9f1f7d1

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

apps/application/swagger_api/application_api.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,19 @@ def get_request_body_api():
302302
'no_references_prompt': openapi.Schema(type=openapi.TYPE_STRING,
303303
title=_("No citation segmentation prompt"),
304304
default="{question}",
305-
description=_("No citation segmentation prompt"))
305+
description=_("No citation segmentation prompt")),
306+
'reasoning_content_enable': openapi.Schema(type=openapi.TYPE_BOOLEAN,
307+
title=_("Reasoning enable"),
308+
default=False,
309+
description=_("Reasoning enable")),
310+
'reasoning_content_end': openapi.Schema(type=openapi.TYPE_STRING,
311+
title=_("Reasoning end tag"),
312+
default="</think>",
313+
description=_("Reasoning end tag")),
314+
"reasoning_content_start": openapi.Schema(type=openapi.TYPE_STRING,
315+
title=_("Reasoning start tag"),
316+
default="<think>",
317+
description=_("Reasoning start tag"))
306318

307319
}
308320
)

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7499,4 +7499,13 @@ msgid "Captcha code error or expiration"
74997499
msgstr ""
75007500

75017501
msgid "captcha"
7502+
msgstr ""
7503+
7504+
msgid "Reasoning enable"
7505+
msgstr ""
7506+
7507+
msgid "Reasoning start tag"
7508+
msgstr ""
7509+
7510+
msgid "Reasoning end tag"
75027511
msgstr ""

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7662,4 +7662,13 @@ msgid "Captcha code error or expiration"
76627662
msgstr "验证码错误或过期"
76637663

76647664
msgid "captcha"
7665-
msgstr "验证码"
7665+
msgstr "验证码"
7666+
7667+
msgid "Reasoning enable"
7668+
msgstr "开启思考过程"
7669+
7670+
msgid "Reasoning start tag"
7671+
msgstr "思考过程开始标签"
7672+
7673+
msgid "Reasoning end tag"
7674+
msgstr "思考过程结束标签"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7672,4 +7672,13 @@ msgid "Captcha code error or expiration"
76727672
msgstr "驗證碼錯誤或過期"
76737673

76747674
msgid "captcha"
7675-
msgstr "驗證碼"
7675+
msgstr "驗證碼"
7676+
7677+
msgid "Reasoning enable"
7678+
msgstr "開啟思考過程"
7679+
7680+
msgid "Reasoning start tag"
7681+
msgstr "思考過程開始標籤"
7682+
7683+
msgid "Reasoning end tag"
7684+
msgstr "思考過程結束標籤"

0 commit comments

Comments
 (0)