What happened?
docker images version: litellm/litellm-database:v1.80.12-nightly
I want to add model of MiniMax-M2 with anthropic api in WebUI ( which api endpoit is https://api.minimaxi.com/anthropic ). But some problems was found:
(1) I can not select anthropic api mode (which should be 'messages' /v1/messages )
(2) If I don't choose correct mode or not choose mode, I filled 'API Base URL' = 'https://api.minimaxi.com/anthropic' and my api key, and then test connection,it failed!
Relevant log output
# Test connection failed logs as:
Connection to MiniMax-M2 failed
Error:
MinimaxException - <html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html>
Troubleshooting Details
litellm.APIConnectionError: MinimaxException - <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
stack trace: Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/litellm/llms/custom_httpx/llm_http_handler.py", line 158, in _make_common_async_call
response = await async_httpx_client.post(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<10 lines>...
)
^
File "/usr/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py", line 190, in async_wrapper
result = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py", line 464, in post
raise e
File "/usr/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py", line 420, in post
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://api.m
API Request
curl -X POST \
https://api.minimaxi.com/anthropic/v1/chat/completions \
-H 'Authorization: Be****1A' \
-H 'Content-Type: application/json' \
-H 'Content-Type: application/json' \
-d '{
{
"model": "MiniMax-M2",
"messages": [
{
"role": "user",
"content": "What's 1 + 1?"
}
]
}
}'
What part of LiteLLM is this about?
UI Dashboard
What LiteLLM version are you on ?
litellm/litellm-database:v1.80.12-nightly
Twitter / LinkedIn details
No response
What happened?
docker images version: litellm/litellm-database:v1.80.12-nightly
I want to add model of MiniMax-M2 with anthropic api in WebUI ( which api endpoit is https://api.minimaxi.com/anthropic ). But some problems was found:
(1) I can not select anthropic api mode (which should be 'messages' /v1/messages )
(2) If I don't choose correct mode or not choose mode, I filled 'API Base URL' = 'https://api.minimaxi.com/anthropic' and my api key, and then test connection,it failed!
Relevant log output
What part of LiteLLM is this about?
UI Dashboard
What LiteLLM version are you on ?
litellm/litellm-database:v1.80.12-nightly
Twitter / LinkedIn details
No response