CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

FEAT: Add custom endpoint for providers not listed

Open ma73rial opened this issue 6 months ago • 1 comments

Title says it all, in the settings page, add a dropdown to configure model providers not currently listed. (OpenAI compatible, of course), giving people more freedom to use the tool.

ma73rial avatar May 17 '26 23:05 ma73rial

A practical way to validate a generic custom-endpoint flow is against a plain hosted OpenAI-compatible endpoint rather than only local servers. One example is AI Router:

  • Site: https://ai-router.dev
  • API base URL: https://api.ai-router.dev/v1
  • Auth: standard bearer key
  • Discovery: /v1/models
  • Chat path: /v1/chat/completions

That gives you a real target for testing:

  • custom base URL handling
  • manual model entry + optional model discovery
  • auth vs endpoint vs model mismatch errors
  • no silent fallback to a different backend

I also published a small examples repo for this endpoint shape if useful for docs or QA references: https://github.com/airouter-dev/ai-router-openai-compatible-examples

One small UX note: make it clear that the configured URL should usually include the /v1 suffix.

airouter-dev avatar Jul 10 '26 09:07 airouter-dev