Structs§
- APIMessage
 - Common message structure used for LLM API requests
 - Azure
Completion Request  - Simple completion-focused LLM request for Azure OpenAI Note: In Azure OpenAI, the model is specified in the URL, not in the request body
 - LLMChoice
 - LLMCompletion
Response  - Response from LLM for simple completions
 
Enums§
- Message
Role  - Role of a message in a conversation
 
Constants§
Functions§
- build_
llm_ headers  - Builds common headers for LLM requests
 - estimate_
tokens  - Estimate the number of tokens in a given text.
 - make_
blocking_ llm_ request  - Makes a non-streaming request to an LLM using application configuration
 - make_
llm_ 🔒request  - Makes a non-streaming request to an LLM
 - make_
streaming_ llm_ request  - Makes a streaming request to an LLM
 - prepare_
azure_ endpoint  - Prepares Azure OpenAI endpoint with API version
 - process_
llm_ 🔒response  - Process a non-streaming LLM response