feat: add GPT-4.1 nano model support#387
Merged
dosco merged 1 commit intoax-llm:mainfrom Oct 15, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature - Add support for GPT-4.1 nano model
What is the current behavior?
The codebase currently supports GPT-4.1 and GPT-4.1 mini models, but does not include the GPT-4.1 nano model which is the fastest and most cost-efficient version of
GPT-4.1.
What is the new behavior (if this is a feature change)?
This PR adds full support for the GPT-4.1 nano model (
gpt-4.1-nano) across both Chat Completions and Responses APIs with:Model enum definition in
AxAIOpenAIModelandAxAIOpenAIResponsesModelPricing configuration: $0.10 per 1M input tokens, $0.40 per 1M output tokens
1,047,576 token context window
32,768 max output tokens
Support for text and image input, streaming, function calling, structured outputs, and predicted outputs
The model is positioned after GPT-4.1 mini in the model hierarchy, following the pattern: GPT-4.1 → GPT-4.1 mini → GPT-4.1 nano
Pricing and specifications are based on the official OpenAI documentation for GPT-4.1 nano. This model is ideal for high-volume, latency-sensitive applications that
require fast inference at minimal cost.