Skip to content

Commit 478ca8e

Browse files
committed
Enable thinking for agent scenarios only
1 parent 912ce8f commit 478ca8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/endpoint/node/chatEndpoint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ export class ChatEndpoint implements IChatEndpoint {
279279
}
280280

281281
protected customizeCapiBody(body: IEndpointBody, options: ICreateEndpointBodyOptions): IEndpointBody {
282-
const isConversationOther = options.location === ChatLocation.Other;
283-
if (isAnthropicFamily(this) && !options.disableThinking && !isConversationOther) {
282+
const isConversationAgent = options.location === ChatLocation.Agent;
283+
if (isAnthropicFamily(this) && !options.disableThinking && isConversationAgent) {
284284
const configuredBudget = this._configurationService.getExperimentBasedConfig(ConfigKey.AnthropicThinkingBudget, this._expService);
285285
if (configuredBudget && configuredBudget > 0) {
286286
const normalizedBudget = configuredBudget < 1024 ? 1024 : configuredBudget;

0 commit comments

Comments
 (0)