mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-13 08:05:23 +00:00
When testing an Anthropic API key in workspace AI settings, the testKey function now uses the Anthropic SDK instead of the OpenAI SDK. This ensures proper API compatibility and correct request format. Changes: - Added import for convertOpenAIToAnthropicMessages - Modified testKey to detect Anthropic provider and use dedicated handler - Added testAnthropicKey helper function that uses Anthropic SDK's messages.create with proper headers and message format Fixes #7762 Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>