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: jetify-com/ai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.2
Choose a base ref
...
head repository: jetify-com/ai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.0
Choose a head ref
  • 18 commits
  • 38 files changed
  • 5 contributors

Commits on Aug 21, 2025

  1. Update Internal Dependencies (#557)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: loreto <[email protected]>
    github-actions[bot] and loreto authored Aug 21, 2025
    Configuration menu
    Copy the full SHA
    2310934 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2025

  1. Update Internal Dependencies (#559)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: loreto <[email protected]>
    github-actions[bot] and loreto authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    337956c View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2025

  1. Update Internal Dependencies (#561)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: loreto <[email protected]>
    github-actions[bot] and loreto authored Aug 29, 2025
    Configuration menu
    Copy the full SHA
    03a3417 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2025

  1. [ai] Add TODO comments to AI SDK (#563)

    ## Summary
    Adds several TODOs of changes I'm considering to the AI SDK, and links
    to relevant codebases (in MCP or Vercel's version, for example).
    
    Just want to get these in quickly before I start making changes.
    
    ## How was it tested?
    N/A
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    loreto authored Sep 4, 2025
    Configuration menu
    Copy the full SHA
    71dde86 View commit details
    Browse the repository at this point in the history
  2. Update Internal Dependencies (#564)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: loreto <[email protected]>
    github-actions[bot] and loreto authored Sep 4, 2025
    Configuration menu
    Copy the full SHA
    7a1fe74 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2025

  1. Remove RedactedReasoning from code (#566)

    ## Summary
    Simplify the API by removing the need for "RedactedReasoning". Instead
    we have a single Reasoning block, and if there's fields related to a
    redaction, we keep them in the provider metadata.
    
    This follows the recent changes in the Vercel SDK.
    
    ## How was it tested?
    Updated tests and ran them.
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    loreto authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    0ebc662 View commit details
    Browse the repository at this point in the history
  2. [aisdk] Move unused api surface to internal (#567)

    ## Summary
    The AI SDK has types defined for image models and embedding models ...
    but we've never really used those or implemented providers for those
    models. This PR moves those types to internal, so that end-users don't
    start depending on those types until we test them out and are ready to
    make them public.
    
    ## How was it tested?
    Ran tests.
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    loreto authored Sep 19, 2025
    Configuration menu
    Copy the full SHA
    aa70e32 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2025

  1. [ai] add nil check for provider metadata (#568)

    ## Summary
    
    Ran into panic with this:
    ```
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x11a77a0]
    
    goroutine 561 [running]:
    go.jetify.com/ai/api.(*Response).GetProviderMetadata(0x0?)
    	/home/runner/go/pkg/mod/go.jetify.com/[email protected]/api/llm_language_model.go:93
    2025-10-17 03:26:09.667
    go.jetify.com/ai/api.GetMetadata[...]({0x20f03cb, 0x9}, {0x23e0540, 0x0?})
    2025-10-17 03:26:09.667
    	/home/runner/go/pkg/mod/go.jetify.com/[email protected]/api/llm_provider_metadata.go:95 +0x5f
    2025-10-17 03:26:09.667
    go.jetify.com/ai/provider/anthropic/codec.GetMetadata(...)
    2025-10-17 03:26:09.667
    	/home/runner/go/pkg/mod/go.jetify.com/[email protected]/provider/anthropic/codec/metadata.go:24
    2025-10-17 03:26:09.667
    ```
    
    ## How was it tested?
    
    have not tested
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    savil authored Oct 17, 2025
    Configuration menu
    Copy the full SHA
    197be6f View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2025

  1. Revert "[ai] add nil check for provider metadata (#568)" (#569)

    ## Summary
    
    This reverts commit c6b33e126335c366c106eb5f28fcafab2887ae37.
    That was a silly no-op
    
    ## How was it tested?
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    savil authored Oct 21, 2025
    Configuration menu
    Copy the full SHA
    dded26d View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2025

  1. [aisdk] handle nil receiver in language model's Response.GetProviderM…

    …etadata (#570)
    
    ## Summary
    
    This should fix the nil pointer seg-fault hit in #568
    
    ## How was it tested?
    
    Exercised product code that hit this code path, and verified that the
    anthropic code.GetMetadata() call was able to return successfully
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    savil authored Oct 22, 2025
    Configuration menu
    Copy the full SHA
    c3ab152 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2025

  1. [openai] Set/expose tool IDs/names in constants (#572)

    ## Summary
    - Pulls out tool IDs and names into constants, to avoid using string
    literals in multiple places
    - Adds ComputerUsePreview as an available model
    - Fixes bug were ComputerUse ToolResults were not being encoded properly
    because we were comparing `toolCallID` (e.g. `cu_deadbeef`) against the
    tool name (`openai.computer_use_preview`)
    
    NOTE: we are setting the Tool ID into `api.ToolCallBlock.ToolName` and
    `api.ToolResultBlock.ToolName`. This seems like a bug. I didn't fix it
    in this PR; will fix in the future. I'm not sure if it makes more sense
    to expose the ToolID or the ToolName. I think ToolID but let me know if
    you have opinions.
    
    ## How was it tested?
    CICD
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    ipince authored Nov 7, 2025
    Configuration menu
    Copy the full SHA
    0fccdd8 View commit details
    Browse the repository at this point in the history
  2. Update Internal Dependencies (#575)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: loreto <[email protected]>
    github-actions[bot] and loreto authored Nov 7, 2025
    Configuration menu
    Copy the full SHA
    651a729 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2025

  1. [openai] Include ResponseInfo in response (#571)

    ## Summary
    Populates `ResponseInfo` in the response object for openai calls.
    
    ## How was it tested?
    CICD
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    ipince authored Nov 10, 2025
    Configuration menu
    Copy the full SHA
    702e557 View commit details
    Browse the repository at this point in the history
  2. Update Internal Dependencies (#577)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: ipince <[email protected]>
    github-actions[bot] and ipince authored Nov 10, 2025
    Configuration menu
    Copy the full SHA
    494222e View commit details
    Browse the repository at this point in the history
  3. [aisdk] Set model config for CUA models (#576)

    ## Summary
    CUA models require auto-truncation.
    
    I also set `isReasoning` and `systemMessageMode` to match what Vercel's
    AISDK sets for them, but honestly I'm not sure how those fields are
    used... The inference calls worked just fine whether the roles were
    "system" or "developer".
    
    Also, it seems that CUA is indeed a "reasoning model", because we do get
    reasoning output from it, even if it's not listed as a reasoning model
    in OpenAI's docs. But, OpenAI's docs also say that reasoning models do
    _not_ support temperature, but we do set temperature (after
    loop-detection) and it does seem to work... so I'm a bit confused here.
    I might have to change some of the AISDK code that currently enforces
    that temperature is NOT set for reasoning models.
    
    ## How was it tested?
    Ran `testpilot test` while pulling these local changes.
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    ipince authored Nov 10, 2025
    Configuration menu
    Copy the full SHA
    edcfad5 View commit details
    Browse the repository at this point in the history
  4. [aisdk] Pass correct CallID and args on computer use tool call (#578)

    ## Summary
    TSIA
    
    ## How was it tested?
    Unit test; running testpitot locally
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    ipince authored Nov 10, 2025
    Configuration menu
    Copy the full SHA
    f28bf50 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2025

  1. [aisdk] Allow for empty reasoning blocks (observed behavior) (#580)

    ## Summary
    Sometimes the model does return an empty reasoning block... Let's let it
    through instead of failing to decode.
    
    Example:
    
    https://platform.openai.com/logs/resp_02474882b463981300691523a7eb9481938b7823951cfe62ab
    
    I'll add the raw response in a comment to this PR
    
    ## How was it tested?
    Ran testpilot locally.
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    ipince authored Nov 13, 2025
    Configuration menu
    Copy the full SHA
    1350e34 View commit details
    Browse the repository at this point in the history
  2. [aisdk] Allow passing of provider metadata in tool definitions (#579)

    ## Summary
    We need it so that we can specify whether the tool schema validation
    should be strict or not.
    
    ## How was it tested?
    Used with testpilot and its custom tools. I'll send a PR on axiom to
    show its usage too.
    
    ## Community Contribution License
    
    All community contributions in this pull request are licensed to the
    project maintainers under the terms of the [Apache 2
    License](https://www.apache.org/licenses/LICENSE-2.0).
    
    By creating this pull request I represent that I have the right to
    license the contributions to the project maintainers under the Apache 2
    License as stated in the [Community Contribution
    License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
    ipince authored Nov 13, 2025
    Configuration menu
    Copy the full SHA
    07d0f01 View commit details
    Browse the repository at this point in the history
Loading