Portkey
Portkey utilities for portkey integration utilities.
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.
MaximPortkeyClient
Maxim instrumenter for Portkey client that directly handles chat.completion method.
__getattr__
Delegate all other attributes to the underlying Portkey client.
MaximPortkeyChat
Maxim instrumenter for Portkey chat functionality.
__getattr__
Delegate all other attributes to the underlying chat client.
MaximAsyncPortkeyChat
Maxim instrumenter for async Portkey chat functionality.
__getattr__
Delegate all other attributes to the underlying chat client.
MaximPortkeyChatCompletions
Maxim instrumenter for Portkey chat completions.
create
Instrumented create method that logs to Maxim.
__getattr__
Delegate all other attributes to the underlying completions client.
MaximAsyncPortkeyChatCompletions
Maxim instrumenter for async Portkey chat completions.
create
Instrumented async create method that logs to Maxim.
__getattr__
Delegate all other attributes to the underlying completions client.