mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
[codex] Thread backend-selected near-limit prompt state through client models
This commit is contained in:
@@ -2425,6 +2425,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"currentUsageLimitNudge": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/UsageLimitNudge"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"limitId": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -4373,6 +4383,30 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"UsageLimitNudge": {
|
||||
"properties": {
|
||||
"action": {
|
||||
"$ref": "#/definitions/UsageLimitNudgeAction"
|
||||
},
|
||||
"threshold": {
|
||||
"format": "uint8",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action",
|
||||
"threshold"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudgeAction": {
|
||||
"enum": [
|
||||
"add_credits",
|
||||
"upgrade"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"UserInput": {
|
||||
"oneOf": [
|
||||
{
|
||||
|
||||
+34
@@ -12770,6 +12770,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"currentUsageLimitNudge": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/v2/UsageLimitNudge"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"limitId": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -17804,6 +17814,30 @@
|
||||
"title": "TurnSteerResponse",
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudge": {
|
||||
"properties": {
|
||||
"action": {
|
||||
"$ref": "#/definitions/v2/UsageLimitNudgeAction"
|
||||
},
|
||||
"threshold": {
|
||||
"format": "uint8",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action",
|
||||
"threshold"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudgeAction": {
|
||||
"enum": [
|
||||
"add_credits",
|
||||
"upgrade"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"UserInput": {
|
||||
"oneOf": [
|
||||
{
|
||||
|
||||
+34
@@ -9423,6 +9423,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"currentUsageLimitNudge": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/UsageLimitNudge"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"limitId": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -15690,6 +15700,30 @@
|
||||
"title": "TurnSteerResponse",
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudge": {
|
||||
"properties": {
|
||||
"action": {
|
||||
"$ref": "#/definitions/UsageLimitNudgeAction"
|
||||
},
|
||||
"threshold": {
|
||||
"format": "uint8",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action",
|
||||
"threshold"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudgeAction": {
|
||||
"enum": [
|
||||
"add_credits",
|
||||
"upgrade"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"UserInput": {
|
||||
"oneOf": [
|
||||
{
|
||||
|
||||
+34
@@ -61,6 +61,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"currentUsageLimitNudge": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/UsageLimitNudge"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"limitId": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -141,6 +151,30 @@
|
||||
"usedPercent"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudge": {
|
||||
"properties": {
|
||||
"action": {
|
||||
"$ref": "#/definitions/UsageLimitNudgeAction"
|
||||
},
|
||||
"threshold": {
|
||||
"format": "uint8",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action",
|
||||
"threshold"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudgeAction": {
|
||||
"enum": [
|
||||
"add_credits",
|
||||
"upgrade"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
|
||||
+34
@@ -61,6 +61,16 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"currentUsageLimitNudge": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/UsageLimitNudge"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"limitId": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -141,6 +151,30 @@
|
||||
"usedPercent"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudge": {
|
||||
"properties": {
|
||||
"action": {
|
||||
"$ref": "#/definitions/UsageLimitNudgeAction"
|
||||
},
|
||||
"threshold": {
|
||||
"format": "uint8",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action",
|
||||
"threshold"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"UsageLimitNudgeAction": {
|
||||
"enum": [
|
||||
"add_credits",
|
||||
"upgrade"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
|
||||
@@ -5,5 +5,6 @@ import type { PlanType } from "../PlanType";
|
||||
import type { CreditsSnapshot } from "./CreditsSnapshot";
|
||||
import type { RateLimitReachedType } from "./RateLimitReachedType";
|
||||
import type { RateLimitWindow } from "./RateLimitWindow";
|
||||
import type { UsageLimitNudge } from "./UsageLimitNudge";
|
||||
|
||||
export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, };
|
||||
export type RateLimitSnapshot = { limitId: string | null, limitName: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, planType: PlanType | null, rateLimitReachedType: RateLimitReachedType | null, currentUsageLimitNudge: UsageLimitNudge | null, };
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { UsageLimitNudgeAction } from "./UsageLimitNudgeAction";
|
||||
|
||||
export type UsageLimitNudge = { threshold: number, action: UsageLimitNudgeAction, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type UsageLimitNudgeAction = "add_credits" | "upgrade";
|
||||
@@ -428,6 +428,8 @@ export type { TurnStartedNotification } from "./TurnStartedNotification";
|
||||
export type { TurnStatus } from "./TurnStatus";
|
||||
export type { TurnSteerParams } from "./TurnSteerParams";
|
||||
export type { TurnSteerResponse } from "./TurnSteerResponse";
|
||||
export type { UsageLimitNudge } from "./UsageLimitNudge";
|
||||
export type { UsageLimitNudgeAction } from "./UsageLimitNudgeAction";
|
||||
export type { UserInput } from "./UserInput";
|
||||
export type { WarningNotification } from "./WarningNotification";
|
||||
export type { WebSearchAction } from "./WebSearchAction";
|
||||
|
||||
Reference in New Issue
Block a user