Python client published
This commit is contained in:
@@ -8,6 +8,7 @@ from openpipe.api_client.models.report_json_body_tags import (
|
||||
)
|
||||
import toml
|
||||
import time
|
||||
import os
|
||||
|
||||
version = toml.load("pyproject.toml")["tool"]["poetry"]["version"]
|
||||
|
||||
@@ -15,6 +16,9 @@ configured_client = AuthenticatedClient(
|
||||
base_url="https://app.openpipe.ai/api/v1", token=""
|
||||
)
|
||||
|
||||
if os.environ.get("OPENPIPE_API_KEY"):
|
||||
configured_client.token = os.environ["OPENPIPE_API_KEY"]
|
||||
|
||||
|
||||
def _get_tags(openpipe_options):
|
||||
tags = openpipe_options.get("tags") or {}
|
||||
|
||||
Reference in New Issue
Block a user