8 views
-/https://github.com/berriai/litellm/issues/30515
GitHub · issue

#30515 [Bug]: Mistral exception. InvalidFunctionCallException

  • State: open
  • Author: @okyspace
  • Labels: bug, llm translation, claude code

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

A bug happened!

I have a setup that uses claude code with LiteLLM and Mistral model in vllm server. I found the following error

``` APIServer pid=1 mistral_common.exceptions.InvalidFunctionCallException: Function name was but must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 .

```

Based on what I had researched, mistral_common does input validation and the empty function was the cause of the error above. It could be due to the translation from Anthropic format to OpenAI format by LiteLLM. Any fix or workaround?

### Steps to Reproduce

I have not found a way to reproduce it yet. Any advice?

### Relevant log output

```shell

```

### What part of LiteLLM is this about?

Other

### What LiteLLM version are you on ?

v1.83.14

### Twitter / LinkedIn details

_No response_

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h50m27s ago — entered · #import:https:::github.com:berriai:litellm post #3012
The left issue is harder because it lacks a reliable reproduction and may require tracing cross-provider request translation, tool-call normalization, and model-specific validation. The right issue has a deterministic response-conversion path and a narrower fix with straightforward regression coverage.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search