Tags: yuchanns/copilot-openai-api
Tags
Add GET /v1/models and /v1/models/{model} endpoints for OpenAI API co… …mpatibility (#13) * Initial plan * Add GET /v1/models endpoint with OpenAI-compatible format Co-authored-by: yuchanns <25029451+yuchanns@users.noreply.github.com> * Fix /v1/models to proxy to GitHub Copilot API instead of returning static list Co-authored-by: yuchanns <25029451+yuchanns@users.noreply.github.com> * Transform GitHub Copilot models response to OpenAI format Co-authored-by: yuchanns <25029451+yuchanns@users.noreply.github.com> * Reuse proxy() function and add GET /v1/models/{model} endpoint Co-authored-by: yuchanns <25029451+yuchanns@users.noreply.github.com> * clean code --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: yuchanns <25029451+yuchanns@users.noreply.github.com> Co-authored-by: Hanchin Hsieh <me@yuchanns.xyz> [feature]: Anthropic endpoint (#9) * feat(anthropic-endpoint): add compatible `/v1/messages` * feat(anthropic-endpoint): non-streaming compatible * feat(anthropic-endpoint): non-streaming compatible * feat(anthropic-endpoint): ensure_ascii false * doc: add anthropic things
feat: Proxy embeddings API (#6) * refactor: use Depends to inject and verify auth * chore(route): rename proxy to proxy_completions * docs: update README for new /v1/embeddings endpoint and improved OpenAI compatibility task: Added /v1/embeddings endpoint to API and documented usage. Updated README to clarify chat completion and embeddings usage and refactor API sections for OpenAI compatibility. Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz> --------- Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
fix: cannot sync token to disk (#1) * enhance: improve error handling and logging for token refresh - Add detailed error handling and logging for debug purposes - Implement stale lock detection and cleanup - Use atomic file operations for token saving - Add self-write detection for file change monitoring Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz> * chore: format and lint --------- Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>