workany icon indicating copy to clipboard operation
workany copied to clipboard

fix: provider detection supports OpenAI-compatible API format

Open buuzzy opened this issue 7 months ago • 0 comments

The POST /providers/detect endpoint only tested Anthropic-style APIs. Now supports both:

  • Accepts apiType parameter (anthropic-messages or openai-completions)
  • Builds correct URL: /v1/messages vs /v1/chat/completions
  • Uses proper auth: x-api-key vs Bearer

Related: #48 (custom model connection failures)

buuzzy avatar Apr 17 '26 01:04 buuzzy