Skip to content

fix: improve environment variable checking logic#66

Open
hiSandog wants to merge 1 commit intoshareAI-lab:mainfrom
hiSandog:fix/improve-env-check
Open

fix: improve environment variable checking logic#66
hiSandog wants to merge 1 commit intoshareAI-lab:mainfrom
hiSandog:fix/improve-env-check

Conversation

@hiSandog
Copy link

@hiSandog hiSandog commented Mar 9, 2026

Summary

  • Use 'is not None' instead of truthy check for ANTHROPIC_BASE_URL
  • This correctly handles cases where the env var is set to empty string
  • Ensures ANTHROPIC_AUTH_TOKEN is properly cleared when using custom base URL

Testing

  • Works correctly with ANTHROPIC_BASE_URL set to empty string
  • Works correctly with ANTHROPIC_BASE_URL not set

- Use 'is not None' instead of truthy check for ANTHROPIC_BASE_URL
- This correctly handles cases where the env var is set to empty string
- Ensures ANTHROPIC_AUTH_TOKEN is properly cleared when using custom base URL
@vercel
Copy link

vercel bot commented Mar 9, 2026

Someone is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant