Im rerouting cline requests through litellm to codestral but i get this error 19:03:59 -…
- User
Im rerouting cline requests through litellm to codestral but i get this error 19:03:59 - LiteLLM Proxy:ERROR: _common.py:120 - Giving up chat_completion(...) after 1 tries (litellm.proxy._types.ProxyException) INFO: 127.0.0.1:55733 - "POST /chat/completions HTTP/1.1" 500 Internal Server Error 19:04:00 - LiteLLM Proxy:ERROR: proxy_server.py:3320 - litellm.proxy.proxy_server.chat_completion(): Exception occured - litellm.APIConnectionError: APIConnectionError: MistralException - 1 validation error for Content content Input should be a valid string [type=string_type, input_value=[{'type': 'text', 'text':.../environment_details>'}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/string_type Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/main.py", line 1460, in completion raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/main.py", line 1401, in completion msgs = [Content(role=msg['role'], content=msg['content']) for msg in messages] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pydantic/main.py", line 212, in init validated_self = self.pydantic_validator.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for Content content Input should be a valid string [type=string_type, input_value=[{'type': 'text', 'text':.../environment_details>'}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/string_type
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/proxy/proxy_server.py", line 3209, in chat_completion responses = await llm_responses ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/utils.py", line 1589, in wrapper_async raise e File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/utils.py", line 1409, in wrapper_async result = await original_function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/main.py", line 449, in acompletion raise exception_type( File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/main.py", line 419, in acompletion init_response = await loop.run_in_executor(None, func_with_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/utils.py", line 755, in wrapper result = original_function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/main.py", line 2889, in completion raise exception_type( ^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/utils.py", line 8199, in exception_type raise e # it's already mapped ^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/utils.py", line 6597, in exception_type raise APIConnectionError( litellm.exceptions.APIConnectionError: litellm.APIConnectionError: APIConnectionError: MistralException - 1 validation error for Content content Input should be a valid string [type=string_type, input_value=[{'type': 'text', 'text':.../environment_details>'}], input_type=list] For further information visit 19:04:00 - LiteLLM Proxy:ERROR: _common.py:120 - Giving up chat_completion(...) after 1 tries (litellm.proxy._types.ProxyException) INFO: 127.0.0.1:55734 - "POST /chat/completions HTTP/1.1" 500 Internal Server Error
- Assistant