workany
workany copied to clipboard
fix: provider detection supports OpenAI-compatible API format
The POST /providers/detect endpoint only tested Anthropic-style APIs. Now supports both:
- Accepts
apiTypeparameter (anthropic-messagesoropenai-completions) - Builds correct URL:
/v1/messagesvs/v1/chat/completions - Uses proper auth:
x-api-keyvsBearer
Related: #48 (custom model connection failures)