openai icon indicating copy to clipboard operation
openai copied to clipboard

Does it supports Deepseek or LM Studio api tools?

Open wisamidris77 opened this issue 1 month ago • 0 comments
trafficstars

When I use deepseek api as normal it works but if I added only one function then a exception appears

Called tool call call_00_xsLseh8C4YMoBWXUuvqbhNvU with function readCurrentFields and  and response {name: Laptop, price: 1.55}
Unhandled exception:
RequestFailedException(message: Failed to deserialize the JSON body into the target type: messages[3]: invalid type: sequence, expected a string at line 1 column 824, statusCode: 400)

And with LM Studio it works normally but for some reason request args are always empty. Like it calls the tool and when I see argument from toolCall it's just empty I tried both the LM Studio and deepseek api with the same creds in python openai and both worked LM Studio and deepseek and this library as a OpenAI Compatable should be supported by any other api I think the problem could be just in the code you didn't take most of the api specs from the openai.json and some just hardcoded.

wisamidris77 avatar Sep 24 '25 23:09 wisamidris77