CopilotForXcode
CopilotForXcode copied to clipboard
FEAT: Add custom endpoint for providers not listed
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.
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.