Skip to main content

LM Studio

note

If your tasking AI server is locally deployed with Docker, and the target model is also running in your local environment, LM_STUDIO_HOST should start with http://host.docker.internal:port instead of http://localhost:port. Replace port with your actual port number.

LM Studio is a development environment designed to provide a feature-rich platform for developers working with large language models.

Requisites

To integrate a model running on LM Studio to TaskingAI, you need to have a valid LM Studio service first. To get started, please visit LM studio's website, or follow the simple instructions in the Quick Start.

Required credentials:

  • LM_STUDIO_HOST: The url to the model running on LM Studio. Should ends with port number, detailed endpoint path is not required. For example, http://localhost:1234

Supported Models:

Wildcard

  • Model schema id: lm_studio/wildcard

Quick Start

Deploy LM Studio service to your local environment

  1. Download LM Studio client from LM studio's website.
  2. Launch the client.
  3. Search and download your desired model
  4. Load your model using LM Studio.

LM Studio

By default, the model is running on your localhost at 1234 port. And you should pass http://localhost:1234 as LM_STUDIO_HOST to TaskingAI.

Integrate LM Studio to TaskingAI

Now that you have a running LM Studio service with your desired model, you can integrate it to TaskingAI by creating a new model with the following steps:

  1. Visit your local TaskingAI service page. By default, it is running at http://localhost:8080.
  2. Login and navigate to Model management page.
  3. Start creating a new model by clicking the Create Model button.
  4. Select LM Studio as the provider, and wildcard as model.
  5. Use LM Studio host's address http://localhost:1234 as LM_STUDIO_HOST. Or if you are running the model on a different port, replace 1234 with the correct port number.
  6. Input the model name and provider_model_id. The provider_model_id is the name of your desired model.

Integrate LM Studio Models