liu-zhen-wei

Results comments of liu-zhen-wei

我也遇到了,有什么解决办法吗

我是同样的配置,遇到了别的问题, Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 689] (through reference chain: org.springframework.ai.openai.api.OpenAiApi$ChatCompletion["choices"]->java.util.ArrayList[0]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletion$Choice["message"]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletionMessage["tool_calls"]->java.util.ArrayList[0]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletionMessage$ToolCall["function"]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletionMessage$ChatCompletionFunction["arguments"])

String content = chatClient.prompt(query).call().content(); 使用这个方式调用mcp工具报错

> 该问题似乎与您遇到的问题不同。如果是这样,请创建一个单独的 issue。 Has already been created

> > 我是同样的配置,遇到了别的问题, Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 689] (through reference chain: org.springframework.ai.openai.api.OpenAiApi$ChatCompletion["choices"]->java.util.ArrayList[0]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletion$Choice["message"]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletionMessage["tool_calls"]->java.util.ArrayList[0]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletionMessage$ToolCall["function"]->org.springframework.ai.openai.api.OpenAiApi$ChatCompletionMessage$ChatCompletionFunction["arguments"])...

![Image](https://github.com/user-attachments/assets/d67393e5-7247-4b33-bef3-4a9cfa8da6ad)

> Which model are you using? Is it an OpenAI model or a OpenAI-compatible model? I am using a model that is compatible with the OpenAI protocol, and it utilizes...

> Which model are you using? Is it an OpenAI model or a OpenAI-compatible model? Could you please provide a solution?

> Please provide specific information. Without detailed information, it is difficult for others to assist you. > > For example, the following details can be helpful: > > * Let...

> 你的MCP Server是不是配置有问题? 我在其他软件调用我写的这个mcp server是正常的,例如cursor dify