[GH-ISSUE #2940] How to set the workspace model through API interface #1873

Closed
opened 2026-02-22 18:26:56 -05:00 by yindo · 4 comments
Owner

Originally created by @zhangyibing2025 on GitHub (Jan 5, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2940

I have created a new workspace through the/app/v1/workspace/new interface, and I would like to know how to set up the LLM model for this workspace. The LLM model for the newly created workspace is the default. I want to set it to qwen2.5: latest
image

Originally created by @zhangyibing2025 on GitHub (Jan 5, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2940 I have created a new workspace through the/app/v1/workspace/new interface, and I would like to know how to set up the LLM model for this workspace. The LLM model for the newly created workspace is the default. I want to set it to qwen2.5: latest ![image](https://github.com/user-attachments/assets/e7e74783-6e35-4550-b0f3-05a13b3e3466)
yindo closed this issue 2026-02-22 18:26:56 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jan 6, 2025):

the key on workspace you are looking for are chatProvider and chatModel - make sure both are set to the proper value. I am not sure what provider you are using for the system, but it would be something like ollama qwen2.5:latest for that pair.

You can update this programmatically from this endpoint (POST /api/v1/workspace/{slug}/update)
https://github.com/Mintplex-Labs/anything-llm/blob/ad01df8790e7c86f42114bf5dbef0f0b0b7927fe/server/endpoints/api/workspace/index.js#L272

@timothycarambat commented on GitHub (Jan 6, 2025): the key on `workspace` you are looking for are `chatProvider` and `chatModel` - make sure both are set to the proper value. I am not sure what provider you are using for the system, but it would be something like `ollama` `qwen2.5:latest` for that pair. You can update this programmatically from this endpoint (`POST /api/v1/workspace/{slug}/update`) https://github.com/Mintplex-Labs/anything-llm/blob/ad01df8790e7c86f42114bf5dbef0f0b0b7927fe/server/endpoints/api/workspace/index.js#L272
Author
Owner

@timothycarambat commented on GitHub (Jan 6, 2025):

For what it is worth, you can set this on /new as well like you already are.

# POST api/v1/workspace/new 
 {
 name: "My New Workspace",
 chatModel: "qwen2.5:latest",
 chatProvider: "ollama"
 }
@timothycarambat commented on GitHub (Jan 6, 2025): For what it is worth, you can set this on `/new` as well like you already are. ``` # POST api/v1/workspace/new { name: "My New Workspace", chatModel: "qwen2.5:latest", chatProvider: "ollama" } ```
Author
Owner

@zhangyibing2025 commented on GitHub (Jan 7, 2025):

不管怎样,您也可以/new像以前一样设置它。

# POST api/v1/workspace/new 
 {
 name: "My New Workspace",
 chatModel: "qwen2.5:latest",
 chatProvider: "ollama"
 }

thanks

@zhangyibing2025 commented on GitHub (Jan 7, 2025): > 不管怎样,您也可以`/new`像以前一样设置它。 > > ``` > # POST api/v1/workspace/new > { > name: "My New Workspace", > chatModel: "qwen2.5:latest", > chatProvider: "ollama" > } > ``` thanks
Author
Owner

@dreamer133 commented on GitHub (Oct 3, 2025):

thanks. API manual does not contain that fields

@dreamer133 commented on GitHub (Oct 3, 2025): thanks. API manual does not contain that fields
yindo changed title from How to set the workspace model through API interface to [GH-ISSUE #2940] How to set the workspace model through API interface 2026-06-05 14:43:12 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1873