-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Flex working1 #7045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flex working1 #7045
Changes from all commits
5338922
b0c1eed
5e4c32e
7c16a04
f546851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ export const openAiNativeModels = { | |
inputPrice: 1.25, | ||
outputPrice: 10.0, | ||
cacheReadsPrice: 0.13, | ||
flexPrice: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The flexPrice object is missing cacheWritesPrice. Is this intentional, or should it include all pricing fields for consistency? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OpenAI does not charged extra for CacheWrite. Check with the pricing of other OpenAI api model pricing, if cache write price is included, then inputPrice can be considered as cachWritesPrice, otherwise if these are not maintained for other openai models, then it can be safely ignored here. |
||
inputPrice: 0.625, | ||
outputPrice: 5.0, | ||
cacheReadsPrice: 0.063, | ||
}, | ||
description: "GPT-5: The best model for coding and agentic tasks across domains", | ||
// supportsVerbosity is a new capability; ensure ModelInfo includes it | ||
supportsVerbosity: true, | ||
|
@@ -30,6 +35,11 @@ export const openAiNativeModels = { | |
inputPrice: 0.25, | ||
outputPrice: 2.0, | ||
cacheReadsPrice: 0.03, | ||
flexPrice: { | ||
inputPrice: 0.125, | ||
outputPrice: 1.0, | ||
cacheReadsPrice: 0.013, | ||
}, | ||
description: "GPT-5 Mini: A faster, more cost-efficient version of GPT-5 for well-defined tasks", | ||
supportsVerbosity: true, | ||
}, | ||
|
@@ -43,6 +53,11 @@ export const openAiNativeModels = { | |
inputPrice: 0.05, | ||
outputPrice: 0.4, | ||
cacheReadsPrice: 0.01, | ||
flexPrice: { | ||
inputPrice: 0.025, | ||
outputPrice: 0.2, | ||
cacheReadsPrice: 0.003, | ||
}, | ||
description: "GPT-5 Nano: Fastest, most cost-efficient version of GPT-5", | ||
supportsVerbosity: true, | ||
}, | ||
|
@@ -81,6 +96,11 @@ export const openAiNativeModels = { | |
inputPrice: 2.0, | ||
outputPrice: 8.0, | ||
cacheReadsPrice: 0.5, | ||
flexPrice: { | ||
inputPrice: 1.0, | ||
outputPrice: 4.0, | ||
cacheReadsPrice: 0.25, | ||
}, | ||
supportsReasoningEffort: true, | ||
reasoningEffort: "medium", | ||
}, | ||
|
@@ -112,6 +132,11 @@ export const openAiNativeModels = { | |
inputPrice: 1.1, | ||
outputPrice: 4.4, | ||
cacheReadsPrice: 0.275, | ||
flexPrice: { | ||
inputPrice: 0.55, | ||
outputPrice: 2.2, | ||
cacheReadsPrice: 0.138, | ||
}, | ||
supportsReasoningEffort: true, | ||
reasoningEffort: "medium", | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These animation easing changes seem unrelated to the flex pricing feature. Could these be moved to a separate PR to keep this one focused on a single feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are in fact unrelated. These were causing compile errors for me. These cane be removed or ignored.