diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 807adf6191a..36312b41291 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -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", diff --git a/litellm/provider_endpoints_support_backup.json b/litellm/provider_endpoints_support_backup.json index 7904ac3b239..ea842015034 100644 --- a/litellm/provider_endpoints_support_backup.json +++ b/litellm/provider_endpoints_support_backup.json @@ -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": { diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 807adf6191a..36312b41291 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -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", diff --git a/provider_endpoints_support.json b/provider_endpoints_support.json index 7904ac3b239..ea842015034 100644 --- a/provider_endpoints_support.json +++ b/provider_endpoints_support.json @@ -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": { diff --git a/tests/unit/llms/openai_like/test_topxai_provider.py b/tests/unit/llms/openai_like/test_topxai_provider.py index 4da5ddf24f9..78ad92ad124 100644 --- a/tests/unit/llms/openai_like/test_topxai_provider.py +++ b/tests/unit/llms/openai_like/test_topxai_provider.py @@ -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/")