Skip to content

For New /api/v1/chat API Docs say to use type: message for text input but it should be 'text' #253

Description

@joepetrakovich

Send a chat request to the new API using this format as specified in the docs: https://lmstudio.ai/docs/developer/rest/chat

Received request: POST to /api/v1/chat with body {
"model": "google/gemma-4-e2b",
"input": [
{
"type": "message",
"content": "hi"
}
]
}
2026-09-06 12:52:44 [ERROR]
[LM STUDIO SERVER] {
"error": {
"message": "Invalid discriminator value. Expected 'text' | 'image'",
"type": "invalid_request",
"code": "invalid_union",
"param": "input"
}
}

Docs typo?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions