Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/openai_api_compatible/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.0.25
version: 0.0.26
type: plugin
author: "langgenius"
name: "openai_api_compatible"
Expand Down
17 changes: 17 additions & 0 deletions models/openai_api_compatible/models/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ def get_customizable_model_schema(
required=False,
)
]

if credentials.get("reasoning_thought_support") == "supported":
entity.parameter_rules += [
ParameterRule(
name="reasoning_effort",
label=I18nObject(en_US="Reasoning effort", zh_Hans="推理努力程度"),
help=I18nObject(
en_US="Whether to enable reasoning effort, applicable to various reasoning effort models deployed on reasoning frameworks such as vLLM and SGLang, for example Qwen3.",
zh_Hans="是否开启推理努力程度,适用于vLLM和SGLang等推理框架部署的多种推理努力程度模型,例如Qwen3。",
),
type=ParameterType.STRING,
options=["none", "low", "normal", "high"],
default="none",
required=True,
)
]

return entity

@classmethod
Expand Down
18 changes: 18 additions & 0 deletions models/openai_api_compatible/provider/openai_api_compatible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,24 @@ model_credential_schema:
value: llm
default: "4096"
type: text-input
- variable: reasoning_thought_support
show_on:
- variable: __model_type
value: llm
label:
en_US: Reasoning Support
type: select
required: false
default: not_supported
options:
- value: supported
label:
en_US: Support
zh_Hans: 支持
- value: not_supported
label:
en_US: Not Support
zh_Hans: 不支持
- variable: agent_though_support
show_on:
- variable: __model_type
Expand Down