这是indexloc提供的服务,不要输入任何密码
Skip to content

Does it supports Deepseek or LM Studio api tools? #217

@wisamidris77

Description

@wisamidris77

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions