Skip to content

Commit 6cfaeab

Browse files
authored
Merge pull request lightspeed-core#851 from tisnik/lcore-950-default-model-and-provider-description
LCORE-950: Default model and provider description
2 parents f3a24ea + ea9cac0 commit 6cfaeab

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ The service includes comprehensive user data collection capabilities for various
2222
* [Configuration](#configuration)
2323
* [LLM Compatibility](#llm-compatibility)
2424
* [Set LLM provider and model](#set-llm-provider-and-model)
25+
* [Selecting provider and model](#selecting-provider-and-model)
26+
* [Provider and model selection in REST API request](#provider-and-model-selection-in-rest-api-request)
27+
* [Default provider and model](#default-provider-and-model)
2528
* [Supported providers](#supported-providers)
2629
* [Integration with Llama Stack](#integration-with-llama-stack)
2730
* [Llama Stack as separate server](#llama-stack-as-separate-server)
@@ -50,7 +53,9 @@ The service includes comprehensive user data collection capabilities for various
5053
* [Running Linux container image](#running-linux-container-image)
5154
* [Building Container Images](#building-container-images)
5255
* [Llama-Stack as Separate Service (Server Mode)](#llama-stack-as-separate-service-server-mode)
56+
* [macOS (arm64)](#macos-arm64)
5357
* [Llama-Stack as Library (Library Mode)](#llama-stack-as-library-library-mode)
58+
* [macOS](#macos)
5459
* [Verify it's running properly](#verify-its-running-properly)
5560
* [Custom Container Image](#custom-container-image)
5661
* [Endpoints](#endpoints)
@@ -195,6 +200,43 @@ models:
195200
provider_model_id: gpt-4-turbo
196201
```
197202
203+
## Selecting provider and model
204+
205+
It is possible to configure multiple LLM providers and models are configured. In this case it is needed to:
206+
207+
- select the provider + model in query request
208+
- specify default model and provider in Lightspeed Core Stack configuration file
209+
210+
### Provider and model selection in REST API request
211+
212+
Provider and model can be specified in `/v1/query` and `/v1/streaming-query` REST API requests:
213+
214+
```json
215+
{
216+
"conversation_id": "123e4567-e89b-12d3-a456-426614174000",
217+
"generate_topic_summary": true,
218+
"provider": "openai",
219+
"model": "gpt-5",
220+
"no_tools": false,
221+
"query": "write a deployment yaml for the mongodb image",
222+
"system_prompt": "You are a helpful assistant"
223+
}
224+
```
225+
226+
### Default provider and model
227+
228+
It is possible to configure default provider and model in Lightspeed Core Stack configuration file, under the `inference` node:
229+
230+
```yaml
231+
inference:
232+
- default_provider: SELECTED PROVIDER
233+
default_model: SELECTED MODEL
234+
```
235+
236+
These settings will be used when no provider or model are specified in REST API request.
237+
238+
239+
198240
## Supported providers
199241
200242
For a comprehensive list of supported providers, take a look [here](docs/providers.md).

0 commit comments

Comments
 (0)