Skip to content

If enable_thinking is set to false, the aliyun dashscope is called,【not in effect】 #5180

@yangjinzhao

Description

@yangjinzhao

following sections:

Image https://www.alibabacloud.com/help/zh/model-studio/deep-thinking#5756d849fbqhg

Bug description
reasoningContent is not null

my code:
OpenAiApi openAiApi = OpenAiApi.builder()
.baseUrl(modelInfo.getEndpoint())
.completionsPath(completionsPath)
.apiKey(modelInfo.getApiKey())
.build();
OpenAiChatOptions options = OpenAiChatOptions.builder()
.model(modelInfo.getName())
.extraBody(Map.of("enable_thinking",false))
.streamUsage(false)
.build();
OpenAiChatModel openAiChatModel = OpenAiChatModel.builder()
.openAiApi(openAiApi)
.defaultOptions(options)
.build();
return openAiChatModel;

Environment

Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions