mirror of
https://github.com/openai/codex.git
synced 2026-05-01 18:06:47 +00:00
Add /context window breakdown
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
},
|
||||
"verbose": {
|
||||
"description": "When true, include every contributing row instead of merging repeated labels.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"threadId"
|
||||
],
|
||||
"title": "ThreadContextReadParams",
|
||||
"type": "object"
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"definitions": {
|
||||
"ThreadContextWindowBreakdown": {
|
||||
"properties": {
|
||||
"modelContextWindow": {
|
||||
"format": "int64",
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"sections": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/ThreadContextWindowSection"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"totalTokens": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"sections",
|
||||
"totalTokens"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadContextWindowDetail": {
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"tokens": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"label",
|
||||
"tokens"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ThreadContextWindowSection": {
|
||||
"properties": {
|
||||
"details": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/ThreadContextWindowDetail"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"tokens": {
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"details",
|
||||
"label",
|
||||
"tokens"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"context": {
|
||||
"$ref": "#/definitions/ThreadContextWindowBreakdown"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"context"
|
||||
],
|
||||
"title": "ThreadContextReadResponse",
|
||||
"type": "object"
|
||||
}
|
||||
Reference in New Issue
Block a user