Thanks to visit codestin.com
Credit goes to github.com

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: iOfficeAI/AionCore
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: aimlapi/AionCore-aimlapi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 6 files changed
  • 2 contributors

Commits on Sep 9, 2026

  1. build(fork-only): point aionrs at the branch carrying extra_headers

    FORK-ONLY. Drops the moment `extra_headers` lands upstream and aionrs cuts a
    tag — at which point this goes back to `tag = "v0.2.11+"` and nothing else in
    the tree changes.
    
    The attribution commit that follows needs `TransportCompat::extra_headers`,
    which v0.2.11 does not have, so without this the next commit does not build.
    Kept separate and first so every commit in this branch compiles on its own and
    the feature commit stays reviewable as the change it actually is.
    
    Upstream PR: aimlapi/aionrs-aimlapi#1
    aimlapihello committed Sep 9, 2026
    Configuration menu
    Copy the full SHA
    343002c View commit details
    Browse the repository at this point in the history
  2. feat(aionrs): attribute AI/ML API traffic on the wire

    Conversations never carried attribution. The desktop client sets `HTTP-Referer`
    and `X-Title` in `ClientFactory.ts`, but the only thing routed through that
    code is the built-in image-generation MCP server — chat and model listing go
    through this crate and out via aionrs, which until now wrote authorization and
    content type and nothing else. So the headers existed and reached almost no
    traffic.
    
    `resolve_aionrs_url_and_compat_with_mode` now resolves the four attribution
    headers when the configured base URL is AI/ML API's, and both places that
    apply compat overrides (`manager::aionrs::agent` and `services::provider_health`)
    carry them into the aionrs config. They extend rather than assign, so a preset
    that already carries headers keeps them.
    
    The host match is exact, mirroring `is_openai_host` beside it. That matters
    more than it looks: AI/ML API serves a request with a wrong or missing partner
    id normally and simply attributes it to nobody, so every failure mode here is
    silent. A substring match would hand our partner id to whoever registers
    `api.aimlapi.com.example.test`, and nothing at runtime would say so. Hence
    tests for the near-misses rather than only for the hit, and a test asserting
    the id still matches the gateway's `^part_[A-Za-z0-9]{1,64}$`.
    
    The `is_full_url` early return is covered too — a user who pasted a complete
    endpoint is still talking to the same host, and that path exits before the
    rest of the compat work.
    
    Verified: 1005 tests in `aionui-ai-agent` pass. Removing the one line that
    sets the headers, with the tests kept, fails exactly the two that assert they
    are sent and leaves the three that assert they are NOT sent elsewhere passing
    — which is what those should do.
    aimlapihello committed Sep 9, 2026
    Configuration menu
    Copy the full SHA
    d1c66dd View commit details
    Browse the repository at this point in the history
  3. build(fork-only): lockfile for the aionrs fork branch

    Generated by the dependency repoint two commits back, and drops with it.
    aimlapihello committed Sep 9, 2026
    Configuration menu
    Copy the full SHA
    ffbfddb View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2026

  1. Configuration menu
    Copy the full SHA
    fd38f52 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from aimlapi/feat/aimlapi-attribution

    feat(aionrs): attribute AI/ML API traffic on the wire
    Lookoff-AIMLAPI authored Sep 11, 2026
    Configuration menu
    Copy the full SHA
    1692e35 View commit details
    Browse the repository at this point in the history
Loading