promptlayer 0.4.5__tar.gz → 0.4.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of promptlayer might be problematic. Click here for more details.
- {promptlayer-0.4.5 → promptlayer-0.4.7}/PKG-INFO +1 -1
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/resources/base.py +3 -1
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/utils.py +3 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/pyproject.toml +1 -1
- {promptlayer-0.4.5 → promptlayer-0.4.7}/LICENSE +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/README.md +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/__init__.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/groups/__init__.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/groups/groups.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/promptlayer.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/prompts/__init__.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/prompts/chat.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/prompts/prompts.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/resources/__init__.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/resources/prompt.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/templates.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/track/__init__.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/track/track.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/types/__init__.py +0 -0
- {promptlayer-0.4.5 → promptlayer-0.4.7}/promptlayer/types/prompt_template.py +0 -0
|
@@ -7,7 +7,9 @@ from promptlayer.utils import get_api_key
|
|
|
7
7
|
|
|
8
8
|
class Base:
|
|
9
9
|
API_KEY = get_api_key()
|
|
10
|
-
BASE_URL =
|
|
10
|
+
BASE_URL = (
|
|
11
|
+
os.environ.get("URL_API_PROMPTLAYER", "https://api.promptlayer.com") + "/rest"
|
|
12
|
+
)
|
|
11
13
|
|
|
12
14
|
@classmethod
|
|
13
15
|
def list(cls, params={}):
|
|
@@ -7,6 +7,7 @@ import os
|
|
|
7
7
|
import sys
|
|
8
8
|
import types
|
|
9
9
|
from copy import deepcopy
|
|
10
|
+
from enum import Enum
|
|
10
11
|
from typing import Union
|
|
11
12
|
|
|
12
13
|
import requests
|
|
@@ -114,6 +115,8 @@ def convert_native_object_to_dict(native_object):
|
|
|
114
115
|
return {k: convert_native_object_to_dict(v) for k, v in native_object.items()}
|
|
115
116
|
if isinstance(native_object, list):
|
|
116
117
|
return [convert_native_object_to_dict(v) for v in native_object]
|
|
118
|
+
if isinstance(native_object, Enum):
|
|
119
|
+
return native_object.value
|
|
117
120
|
if hasattr(native_object, "__dict__"):
|
|
118
121
|
return {
|
|
119
122
|
k: convert_native_object_to_dict(v)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|