Integrating Large Language Models in your bots
true
:
LLM
class provided by the lilbots library:
LLM
class from the lilbots library:
LLM
class is designed to be compatible with the OpenAI API client, making it easy to integrate into existing code. The interface follows the same patterns and methods as the official OpenAI SDK.
developer
role can be used in messages to provide system-level instructions to the LLM.Model ID | Provider | Model | Credits per 100 tokens |
---|---|---|---|
openai/gpt-4o | OpenAI | gpt-4o | 5 |
openai/gpt-4.1 | OpenAI | gpt-4.1 | 4 |
openai/o3 | OpenAI | o3 | 20 |
openai/o4-mini | OpenAI | o4-mini | 2 |
openai/gpt-4.1-mini | OpenAI | gpt-4.1-mini | 1 |
openai/gpt-4o-mini | OpenAI | gpt-4o-mini | 1 |