Parameters
The llm.chat method can have the following parameters.Refer to your provider-specific documentation for additional kwargs you can use.
Returns
Usage
Here’s how to use.chat() to make calls to your LLM.
1
Start by importing LLM.
2
Set up an LLM from your desired provider.
3
Create your message. Your message can be a simple
string or a message in the OpenAI format.- String format
- OpenAI format
4
- Non-stream response
- Stream response
Get your response.Vizualize your response.
You are done chating with your LLMstudio LLM!