Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ericc-ch/copilot-api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: androidfans/copilot-api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 18 files changed
  • 3 contributors

Commits on Nov 19, 2025

  1. update compose config

    rejectliu committed Nov 19, 2025
    Configuration menu
    Copy the full SHA
    882e298 View commit details
    Browse the repository at this point in the history
  2. update compose config

    rejectliu committed Nov 19, 2025
    Configuration menu
    Copy the full SHA
    6cb662d View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2025

  1. docker 支持持久化token到容器内

    rejectliu committed Dec 14, 2025
    Configuration menu
    Copy the full SHA
    3b0bdf1 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2025

  1. remove .env

    rejectliu committed Dec 15, 2025
    Configuration menu
    Copy the full SHA
    67bc65c View commit details
    Browse the repository at this point in the history
  2. remove version

    rejectliu committed Dec 15, 2025
    Configuration menu
    Copy the full SHA
    64b67e3 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2026

  1. fix: 内部强制使用流式模式避免长时间请求超时

    - 新增 createChatCompletionsStream 函数,强制使用流式模式
    - 非流式请求改为收集流式数据块后合并返回
    - 解决 ECONNRESET 超时问题
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    rejectliu and claude committed Jan 3, 2026
    Configuration menu
    Copy the full SHA
    b89199d View commit details
    Browse the repository at this point in the history
  2. log to inform non-stream

    rejectliu committed Jan 3, 2026
    Configuration menu
    Copy the full SHA
    3733486 View commit details
    Browse the repository at this point in the history
  3. Revert "log to inform non-stream"

    This reverts commit 3733486.
    rejectliu committed Jan 3, 2026
    Configuration menu
    Copy the full SHA
    daba172 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2026

  1. feat: add manual token refresh command

    Add `refresh-token` CLI command and `/token/refresh` API endpoint to manually
    refresh Copilot token without restarting the container.
    
    Usage: `docker compose exec copilot-api refresh-token`
    
    Co-Authored-By: Claude (claude-opus-4.5) <noreply@anthropic.com>
    rejectliu and claude committed Jan 28, 2026
    Configuration menu
    Copy the full SHA
    ae8f9d0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from androidfans/feat/refresh-token-command

    feat: add manual token refresh command
    androidfans authored Jan 28, 2026
    Configuration menu
    Copy the full SHA
    6944269 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2026

  1. feat: auto refresh token on 401 with 1 hour cooldown

    When a request fails with 401 (token expired), automatically attempt to
    refresh the Copilot token and retry the request. Includes a 1 hour
    cooldown to prevent repeated refresh attempts if the error is caused by
    other issues.
    
    Co-Authored-By: Claude (claude-opus-4.5) <noreply@anthropic.com>
    rejectliu and claude committed Jan 29, 2026
    Configuration menu
    Copy the full SHA
    39c7c03 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2026

  1. feat: centralize model name normalization and add model aliases

    Extract model alias mapping into a dedicated module (model-normalization.ts)
    to unify model name handling across the codebase. This enables Claude Code
    to work with versioned model names (e.g. claude-opus-4-6[1M]) by mapping
    them to their canonical Copilot model IDs. Also fixes a bug in
    count-tokens-handler where the pre-normalization model name was used for
    model lookup.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    rejectliu and claude committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    9a296d3 View commit details
    Browse the repository at this point in the history
  2. feat: add claude-haiku-4-5 as alias for claude-haiku-4.5

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    rejectliu and claude committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    7b4ed31 View commit details
    Browse the repository at this point in the history
  3. docs: explain why claude-opus-4-6 maps to 1m variant

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    rejectliu and claude committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    f4b06ff View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2 from androidfans/feat/model-normalization

    feat: centralize model name normalization and add model aliases
    androidfans authored Feb 28, 2026
    Configuration menu
    Copy the full SHA
    ad93b2b View commit details
    Browse the repository at this point in the history
Loading