Skip to content

Fix(api): stop LM Studio from rejecting tool schemas#1

Open
erickwill wants to merge 1 commit intocodetwentyfive:mainfrom
erickwill:fix/lm-studio-strict-schema
Open

Fix(api): stop LM Studio from rejecting tool schemas#1
erickwill wants to merge 1 commit intocodetwentyfive:mainfrom
erickwill:fix/lm-studio-strict-schema

Conversation

@erickwill
Copy link
Copy Markdown

LM Studio's newer engine is very strict about JSON schemas. This adds the 'properties' and 'required' fields that were missing, which finallyy stops those 400 Bad Request errors from ruining the connection. Verified this natively on Arch Linux and it works perfectly now.

LM Studio's newer engine is very strict about JSON schemas. This adds the 'properties' and 'required' fields that were missing, which finally stops those 400 Bad Request errors from ruining the connection.
@dctucker
Copy link
Copy Markdown

I can confirm that before this patch I get 400 Bad Request from lmstudio endpoints, and that after applying this patch claw plays nicely with lmstudio.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants