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.