Add a python client library
We still don't have any documentation and things are in flux, but you can report your OpenAI API calls to OpenPipe now.
This commit is contained in:
10
client-libs/python/openpipe/__init__.py
Normal file
10
client-libs/python/openpipe/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from .openai import OpenAIWrapper
|
||||
from .shared import configured_client
|
||||
|
||||
openai = OpenAIWrapper()
|
||||
|
||||
def configure_openpipe(base_url=None, api_key=None):
|
||||
if base_url is not None:
|
||||
configured_client._base_url = base_url
|
||||
if api_key is not None:
|
||||
configured_client.token = api_key
|
||||
Reference in New Issue
Block a user