Skip to content

Commit 756bb5a

Browse files
committed
fix: correct CLAUDE_CODE_USE_VERTEX check to match documentation
According to Claude Code docs, the env variable should be checked for value '1', not 'true' Reference: https://docs.anthropic.com/en/docs/claude-code/google-vertex-ai#4-configure-claude-code
1 parent b1ad2d5 commit 756bb5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/claude-code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ClaudeCodeHandler extends BaseProvider implements ApiHandler {
2626
// Filter out image blocks since Claude Code doesn't support them
2727
const filteredMessages = filterMessagesForClaudeCode(messages)
2828

29-
const useVertex = process.env.CLAUDE_CODE_USE_VERTEX?.toLowerCase() === "true"
29+
const useVertex = process.env.CLAUDE_CODE_USE_VERTEX === "1"
3030
const model = this.getModel()
3131

3232
// Validate that the model ID is a valid ClaudeCodeModelId

0 commit comments

Comments
 (0)