-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Which version of LM Studio?
Example: LM Studio 0.4.6
Which operating system?
Windows 11
What is the bug?
Tool parsing from OpenAI dotnet package is different than what LM Studio expects. When creating a response from dotnet app with OpenAI package it parse the tools as below:
"tools": [
{
"type": "function",
"name": "say_hello",
"description": "Says hello to someone",
"parameters": null,
"strict": false
}
],
But in LM Studio Docs it seems that tools has different structure:
tools = [
{
"type": "function",
"function": {
"name": "say_hello",
"description": "Says hello to someone",
"parameters": null
}
}
]
Logs
Full LM Studio Developer logs:
Developer Logs
2026-03-15 15:46:59 [DEBUG]
Received request: POST to /v1/responses with body {
"model": "gpt-oss-20b",
"max_output_tokens": 500,
"tools": [
{
"type": "function",
"name": "say_hello",
"description": "Says hello to someone",
"parameters": null,
"strict": false
}
],
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "hey bro"
}
]
},
{
"type": "message",
"role": "developer",
"content": [
{
"type": "input_text",
"text": "You are a helpful assistant."
}
]
}
],
"store": true,
"instructions": "",
"stream": true
}
2026-03-15 15:46:59 [ERROR]
[Server Error] {
"error": {
"message": "Invalid",
"type": "invalid_request_error",
"param": "tools.0.type",
"code": "invalid_string"
}
}
To Reproduce
Steps to reproduce the behavior:
- Create a dotnet project
- Install OpenAI dotnet package v2.9.1
- Create a streaming
Responsewith function calling as described at OpenAI docs - See error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels