fix(topxai): follow current catalogue schema and endpoint generation

This commit is contained in:
C-L-STARK 2026-10-28 18:05:38 +08:00
parent 4a58d85192
commit 1241046c57
5 changed files with 26 additions and 27 deletions

View file

@ -46363,7 +46363,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 5e-06,
"source": "https://ai.topxea.com/pricing/claude-sonnet-5-5",
@ -46384,7 +46383,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 1e-05,
"source": "https://ai.topxea.com/pricing/claude-opus-5-5",
@ -46405,7 +46403,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 2.5e-05,
"source": "https://ai.topxea.com/pricing/claude-fable-5-1",
@ -46428,7 +46425,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1050000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 5e-06,
"output_cost_per_token_above_272k_tokens": 7.5e-06,
@ -46451,7 +46447,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1050000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 2.5e-05,
"output_cost_per_token_above_272k_tokens": 3.75e-05,
@ -46507,7 +46502,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1048576,
"max_output_tokens": 131072,
"max_tokens": 131072,
"mode": "chat",
"output_cost_per_token": 1.2e-05,
"source": "https://ai.topxea.com/pricing/kimi-k3.1-pro",
@ -46523,7 +46517,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 131072,
"max_tokens": 131072,
"mode": "chat",
"output_cost_per_token": 7e-06,
"source": "https://ai.topxea.com/pricing/glm-5.3-abliterated",
@ -46541,7 +46534,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1048576,
"max_output_tokens": 262144,
"max_tokens": 262144,
"mode": "chat",
"output_cost_per_token": 2.4e-06,
"source": "https://ai.topxea.com/pricing/deepseek-flash-abliterated",

View file

@ -3635,17 +3635,25 @@
"url": "https://docs.litellm.ai/docs/providers/topxai",
"endpoints": {
"chat_completions": true,
"messages": false,
"responses": true,
"text_completion": true,
"embeddings": false,
"image_generations": false,
"image_edits": false,
"audio_transcriptions": false,
"audio_speech": false,
"moderations": false,
"batches": false,
"rerank": false,
"a2a": false,
"interactions": false
"ocr": false,
"search": false,
"moderations": false,
"realtime": false,
"video_generations": false,
"batches": false,
"messages": true,
"interactions": true,
"systemone": false,
"a2a": true,
"generateContent": true
}
},
"inferenceapis": {

View file

@ -46363,7 +46363,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 5e-06,
"source": "https://ai.topxea.com/pricing/claude-sonnet-5-5",
@ -46384,7 +46383,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 1e-05,
"source": "https://ai.topxea.com/pricing/claude-opus-5-5",
@ -46405,7 +46403,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 2.5e-05,
"source": "https://ai.topxea.com/pricing/claude-fable-5-1",
@ -46428,7 +46425,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1050000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 5e-06,
"output_cost_per_token_above_272k_tokens": 7.5e-06,
@ -46451,7 +46447,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1050000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
"output_cost_per_token": 2.5e-05,
"output_cost_per_token_above_272k_tokens": 3.75e-05,
@ -46507,7 +46502,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1048576,
"max_output_tokens": 131072,
"max_tokens": 131072,
"mode": "chat",
"output_cost_per_token": 1.2e-05,
"source": "https://ai.topxea.com/pricing/kimi-k3.1-pro",
@ -46523,7 +46517,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1000000,
"max_output_tokens": 131072,
"max_tokens": 131072,
"mode": "chat",
"output_cost_per_token": 7e-06,
"source": "https://ai.topxea.com/pricing/glm-5.3-abliterated",
@ -46541,7 +46534,6 @@
"litellm_provider": "topxai",
"max_input_tokens": 1048576,
"max_output_tokens": 262144,
"max_tokens": 262144,
"mode": "chat",
"output_cost_per_token": 2.4e-06,
"source": "https://ai.topxea.com/pricing/deepseek-flash-abliterated",

View file

@ -3635,17 +3635,25 @@
"url": "https://docs.litellm.ai/docs/providers/topxai",
"endpoints": {
"chat_completions": true,
"messages": false,
"responses": true,
"text_completion": true,
"embeddings": false,
"image_generations": false,
"image_edits": false,
"audio_transcriptions": false,
"audio_speech": false,
"moderations": false,
"batches": false,
"rerank": false,
"a2a": false,
"interactions": false
"ocr": false,
"search": false,
"moderations": false,
"realtime": false,
"video_generations": false,
"batches": false,
"messages": true,
"interactions": true,
"systemone": false,
"a2a": true,
"generateContent": true
}
},
"inferenceapis": {

View file

@ -252,7 +252,6 @@ class TestTopxAIModelMetadata:
)
assert ("max_output_tokens" in info) is (model not in self.NO_OUTPUT_LIMIT_MODELS)
assert info.get("max_tokens") == info.get("max_output_tokens")
assert info["max_input_tokens"] >= 500_000
assert info["source"].startswith("https://ai.topxea.com/pricing/")