Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
OpenAIClient(client: Union[OpenAI, AzureOpenAI], response_format: Union[BaseModel, dict[str, Any], None] = None)
client
response_format
cost(self, response: Union[ChatCompletion, Completion]) -> float
response
create(self, params: dict[str, Any]) -> ChatCompletion
params
get_usage(response: Union[ChatCompletion, Completion]) -> dict
message_retrieval(self, response: Union[ChatCompletion, Completion]) -> Union[list[str], list[ChatCompletionMessage]]