langtrace-python-sdk 2.1.27__py3-none-any.whl → 2.1.28__py3-none-any.whl
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.
- langtrace_python_sdk/utils/prompt_registry.py +3 -2
- langtrace_python_sdk/version.py +1 -1
- {langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/METADATA +1 -1
- {langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/RECORD +7 -7
- {langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/WHEEL +0 -0
- {langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/entry_points.txt +0 -0
- {langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/licenses/LICENSE +0 -0
|
@@ -27,6 +27,7 @@ class FetchOptions(TypedDict, total=False):
|
|
|
27
27
|
def get_prompt_from_registry(
|
|
28
28
|
prompt_registry_id: str,
|
|
29
29
|
options: Optional[FetchOptions] = None,
|
|
30
|
+
api_key: Optional[str] = None,
|
|
30
31
|
) -> LangtracePrompt:
|
|
31
32
|
"""Fetches a prompt from the registry.
|
|
32
33
|
|
|
@@ -52,8 +53,8 @@ def get_prompt_from_registry(
|
|
|
52
53
|
query_params[f"variables.{key}"] = value
|
|
53
54
|
# Encode the query parameters
|
|
54
55
|
query_string = urlencode(query_params, doseq=True)
|
|
55
|
-
headers = {"x-api-key": os.environ["LANGTRACE_API_KEY"]}
|
|
56
|
-
|
|
56
|
+
headers = {"x-api-key": api_key or os.environ["LANGTRACE_API_KEY"]}
|
|
57
|
+
|
|
57
58
|
# Make the GET request to the API
|
|
58
59
|
response = requests.get(
|
|
59
60
|
f"{os.environ['LANGTRACE_API_HOST']}/api/promptset?{query_string}",
|
langtrace_python_sdk/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.1.
|
|
1
|
+
__version__ = "2.1.28"
|
|
@@ -51,7 +51,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
|
|
|
51
51
|
examples/weaviate_example/query_text.py,sha256=sG8O-bXQpflBAiYpgE_M2X7GcHUlZNgl_wJW8_h-W6Q,127024
|
|
52
52
|
langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
|
|
53
53
|
langtrace_python_sdk/langtrace.py,sha256=pG_dWzzQxUP8r5SAMUwRScb6IopINcda1CZvJERjXBo,7486
|
|
54
|
-
langtrace_python_sdk/version.py,sha256=
|
|
54
|
+
langtrace_python_sdk/version.py,sha256=uJ5T75rsS9yyIgD9aFR6H760hkKMyujptvhmniMPJSY,23
|
|
55
55
|
langtrace_python_sdk/constants/__init__.py,sha256=P8QvYwt5czUNDZsKS64vxm9Dc41ptGbuF1TFtAF6nv4,44
|
|
56
56
|
langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=5MNjnAOg-4am78J3gVMH6FSwq5N8TOj72ugkhsw4vi0,46
|
|
57
57
|
langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -122,7 +122,7 @@ langtrace_python_sdk/utils/__init__.py,sha256=E0nQyBE-4O_GR2PM9y_l7shx4hJLo5xRTh
|
|
|
122
122
|
langtrace_python_sdk/utils/langtrace_sampler.py,sha256=BupNndHbU9IL_wGleKetz8FdcveqHMBVz1bfKTTW80w,1753
|
|
123
123
|
langtrace_python_sdk/utils/llm.py,sha256=Lwa0zdKcXozOvYSDfIJNoWdI8zUGJqiraFilXipW4x0,2484
|
|
124
124
|
langtrace_python_sdk/utils/misc.py,sha256=CD9NWRLxLpFd0YwlHJqzlpFNedXVWtAKGOjQWnDCo8k,838
|
|
125
|
-
langtrace_python_sdk/utils/prompt_registry.py,sha256
|
|
125
|
+
langtrace_python_sdk/utils/prompt_registry.py,sha256=n5dQMVLBw8aJZY8Utvf67bncc25ELf6AH9BYw8_hSzo,2619
|
|
126
126
|
langtrace_python_sdk/utils/sdk_version_checker.py,sha256=FzjIWZjn53cX0LEVPdipQd1fO9lG8iGVUEVUs9Hyk6M,1713
|
|
127
127
|
langtrace_python_sdk/utils/silently_fail.py,sha256=F_9EteXCO9Cyq-8MA1OT2Zy_dx8n06nt31I7t7ui24E,478
|
|
128
128
|
langtrace_python_sdk/utils/types.py,sha256=l-N6o7cnWUyrD6dBvW7W3Pf5CkPo5QaoT__k1XLbrQg,383
|
|
@@ -163,8 +163,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
|
|
|
163
163
|
tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
|
|
164
164
|
tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
|
|
165
165
|
tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
|
|
166
|
-
langtrace_python_sdk-2.1.
|
|
167
|
-
langtrace_python_sdk-2.1.
|
|
168
|
-
langtrace_python_sdk-2.1.
|
|
169
|
-
langtrace_python_sdk-2.1.
|
|
170
|
-
langtrace_python_sdk-2.1.
|
|
166
|
+
langtrace_python_sdk-2.1.28.dist-info/METADATA,sha256=dztxAkQJZd6hWELTJAJJrzeZkYC1AxM_zaWK5QObXIs,13749
|
|
167
|
+
langtrace_python_sdk-2.1.28.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
168
|
+
langtrace_python_sdk-2.1.28.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
|
|
169
|
+
langtrace_python_sdk-2.1.28.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
170
|
+
langtrace_python_sdk-2.1.28.dist-info/RECORD,,
|
|
File without changes
|
{langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.1.27.dist-info → langtrace_python_sdk-2.1.28.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|