Skip to content

fix: provider detection supports OpenAI-compatible API format#61

Open
buuzzy wants to merge 1 commit into
workany-ai:devfrom
buuzzy:fix/provider-detect-openai
Open

fix: provider detection supports OpenAI-compatible API format#61
buuzzy wants to merge 1 commit into
workany-ai:devfrom
buuzzy:fix/provider-detect-openai

Conversation

@buuzzy

@buuzzy buuzzy commented Apr 17, 2026

Copy link
Copy Markdown

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)

POST /providers/detect now accepts apiType parameter and correctly
builds URL and auth headers for both Anthropic and OpenAI endpoints.

Related: workany-ai#48
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