Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Calling Support from LM Studio(OpenAI-like) REST API Server #161

Closed
RishiSoftEngg opened this issue Jan 4, 2025 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@RishiSoftEngg
Copy link

RishiSoftEngg commented Jan 4, 2025

I am currently using the mistral-nemo-instruct-2407 LLM modal locally via LM Studio REST API Server. And, mistral nemo have the capability of calling function but i am not able to find any documentation regarding the function calling in lmstudio.js docs and Rest API Server. This is curl request I am using currently

curl http://localhost:1240/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-nemo-instruct-2407",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes. Today is Thursday" },
      { "role": "user", "content": "What day is it today?" }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": false
}'
Screenshot 2025-01-04 at 11 33 38 PM
@yagil
Copy link
Member

yagil commented Jan 4, 2025

Hey @RishiSoftEngg function calling is available in beta starting LM Studio 0.3.6, you can get it from https://lmstudio.ai/download

We made it available via the OpenAI compatibility API. Not yet though lmstudio-js. Docs here

@yagil yagil added the enhancement New feature or request label Jan 6, 2025
@yagil
Copy link
Member

yagil commented Jan 6, 2025

Same as #75

@yagil yagil added this to the 1.0.0 Stable Release milestone Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants