View module source on GitHub This module is a wrapper around the Portkey client that allows for easy integration with Maxim. It instruments the Portkey client to log to Maxim. It also provides a wrapper around the Portkey chat-completions client that allows for easy integration with Maxim.Documentation Index
Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
instrument_portkey
openai_client attribute of a Portkey or
AsyncPortkey instance so that all OpenAI-compatible calls are logged
via Maxim.
Arguments:
| Name | Description |
|---|---|
client | Instance of Portkey or AsyncPortkey client. |
logger | Maxim [Logger](/sdk/python/references/logger/logger) instance. |
openai_client patched.