Structs§
- 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
- Base
LlmRequest - Base LLM request structure (common fields)
- LlmChoice
- LlmCompletion
Response - Response from LLM for simple completions
- Message
- Common message structure used for LLM requests
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