arize-phoenix 7.10.3__py3-none-any.whl → 7.11.0__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.
Potentially problematic release.
This version of arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-7.10.3.dist-info → arize_phoenix-7.11.0.dist-info}/METADATA +1 -1
- {arize_phoenix-7.10.3.dist-info → arize_phoenix-7.11.0.dist-info}/RECORD +12 -12
- phoenix/server/api/types/GenerativeProvider.py +16 -0
- phoenix/server/static/.vite/manifest.json +9 -9
- phoenix/server/static/assets/{components-CMB_kvRq.js → components-BPFARGZY.js} +105 -105
- phoenix/server/static/assets/{index-baAGkuLZ.js → index-DZnxuVKT.js} +2 -2
- phoenix/server/static/assets/{pages-Cw_XOLII.js → pages-C_s-dcVH.js} +281 -267
- phoenix/version.py +1 -1
- {arize_phoenix-7.10.3.dist-info → arize_phoenix-7.11.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-7.10.3.dist-info → arize_phoenix-7.11.0.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-7.10.3.dist-info → arize_phoenix-7.11.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-7.10.3.dist-info → arize_phoenix-7.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,7 +6,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
|
|
|
6
6
|
phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
7
7
|
phoenix/services.py,sha256=kpW1WL0kiB8XJsO6XycvZVJ-lBkNoenhQ7atCvBoSe8,5365
|
|
8
8
|
phoenix/settings.py,sha256=ht-0oN-sMV6SPXrk7Tu1EZlngpAYkGNLYPhO8DyrdQI,661
|
|
9
|
-
phoenix/version.py,sha256=
|
|
9
|
+
phoenix/version.py,sha256=x9MCn4dCG1RFCLIu1cexyXZxTu8pEkj0bwIVzIIVoxY,23
|
|
10
10
|
phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
|
|
12
12
|
phoenix/core/model.py,sha256=qBFraOtmwCCnWJltKNP18DDG0mULXigytlFsa6YOz6k,4837
|
|
@@ -238,7 +238,7 @@ phoenix/server/api/types/ExperimentRunAnnotation.py,sha256=HEbPygBwbWg10fwY3VZyM
|
|
|
238
238
|
phoenix/server/api/types/ExportedFile.py,sha256=e3GTn7B5LgsTbqiwjhMCQH7VsiqXitrBO4aCMS1lHsg,163
|
|
239
239
|
phoenix/server/api/types/Functionality.py,sha256=tzV9xdhB8zqfsjWxP66NDC7EZsplYkYO7jRbLWJIeeg,382
|
|
240
240
|
phoenix/server/api/types/GenerativeModel.py,sha256=P7eBUMXbeqaLwSSGBKdZy3a5gOLd9I0fuP8o1st6H08,193
|
|
241
|
-
phoenix/server/api/types/GenerativeProvider.py,sha256=
|
|
241
|
+
phoenix/server/api/types/GenerativeProvider.py,sha256=Zg2WcCPiM5xmQrOrfm8-Lp9srRiqNaVGeBnyNBTr390,3925
|
|
242
242
|
phoenix/server/api/types/Inferences.py,sha256=wv88PjcK-KwnzmTdukiAX9EV2KX4GqsKXVAUm1JtnDA,3383
|
|
243
243
|
phoenix/server/api/types/InferencesRole.py,sha256=mLfeHpyhGUVX1-tWzT9IwC_cD18BZrD3RA4YsHYuSpA,595
|
|
244
244
|
phoenix/server/api/types/LabelFraction.py,sha256=zsDxdFALrNiGA1eNykeP8o65gbA0HOhRp54MPH_iRAM,93
|
|
@@ -287,10 +287,10 @@ phoenix/server/static/apple-touch-icon-76x76.png,sha256=CT_xT12I0u2i0WU8JzBZBuOQ
|
|
|
287
287
|
phoenix/server/static/apple-touch-icon.png,sha256=fOfpjqGpWYbJ0eAurKsyoZP1EAs6ZVooBJ_SGk2ZkDs,3801
|
|
288
288
|
phoenix/server/static/favicon.ico,sha256=bY0vvCKRftemZfPShwZtE93DiiQdaYaozkPGwNFr6H8,34494
|
|
289
289
|
phoenix/server/static/modernizr.js,sha256=mvK-XtkNqjOral-QvzoqsyOMECXIMu5BQwSVN_wcU9c,2564
|
|
290
|
-
phoenix/server/static/.vite/manifest.json,sha256=
|
|
291
|
-
phoenix/server/static/assets/components-
|
|
292
|
-
phoenix/server/static/assets/index-
|
|
293
|
-
phoenix/server/static/assets/pages-
|
|
290
|
+
phoenix/server/static/.vite/manifest.json,sha256=29ld8Ig3rYBgHM-q-o4ODwofoVhN4Y5RNTZfdUoKPAI,2163
|
|
291
|
+
phoenix/server/static/assets/components-BPFARGZY.js,sha256=ED1GTDZ8gLmo0E81BIhumakKktXfDdKiuqQlGzWFy7I,393511
|
|
292
|
+
phoenix/server/static/assets/index-DZnxuVKT.js,sha256=7dVHM4frEoU52so0pw4I69K7auD5B-V6UbvVdTMnO-Q,8729
|
|
293
|
+
phoenix/server/static/assets/pages-C_s-dcVH.js,sha256=Ih32_04hGDa9VelBYEIXZrZVv0rEPUcQ9IYHoWHQ0po,686187
|
|
294
294
|
phoenix/server/static/assets/vendor-DvC8cT4X.js,sha256=-EzJrg6BeYa58JPfaZC6KS5gvkJ8gC1n-Sb7lP-pOkw,2159677
|
|
295
295
|
phoenix/server/static/assets/vendor-DxkFTwjz.css,sha256=nZrkr0u6NNElFGvpWHk9GTHeGoibCXCli1bE7mXZGZg,1816
|
|
296
296
|
phoenix/server/static/assets/vendor-arizeai-Do1793cv.js,sha256=IFADVVEZ8VY9o4iqYighRedZTXSyi1uZMTFFsBeIYis,305184
|
|
@@ -337,9 +337,9 @@ phoenix/utilities/project.py,sha256=auVpARXkDb-JgeX5f2aStyFIkeKvGwN9l7qrFeJMVxI,
|
|
|
337
337
|
phoenix/utilities/re.py,sha256=6YyUWIkv0zc2SigsxfOWIHzdpjKA_TZo2iqKq7zJKvw,2081
|
|
338
338
|
phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
339
339
|
phoenix/utilities/template_formatters.py,sha256=gh9PJD6WEGw7TEYXfSst1UR4pWWwmjxMLrDVQ_CkpkQ,2779
|
|
340
|
-
arize_phoenix-7.
|
|
341
|
-
arize_phoenix-7.
|
|
342
|
-
arize_phoenix-7.
|
|
343
|
-
arize_phoenix-7.
|
|
344
|
-
arize_phoenix-7.
|
|
345
|
-
arize_phoenix-7.
|
|
340
|
+
arize_phoenix-7.11.0.dist-info/METADATA,sha256=Q184BZ8_Gexu8FPUI3pqIeFKwF7m_XXnI-sgZiLJsBo,23390
|
|
341
|
+
arize_phoenix-7.11.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
342
|
+
arize_phoenix-7.11.0.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
|
|
343
|
+
arize_phoenix-7.11.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
344
|
+
arize_phoenix-7.11.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
345
|
+
arize_phoenix-7.11.0.dist-info/RECORD,,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
from enum import Enum
|
|
2
3
|
from typing import Any, ClassVar, Optional, Union
|
|
3
4
|
|
|
@@ -34,6 +35,13 @@ class GenerativeProvider:
|
|
|
34
35
|
OpenInferenceLLMProviderValues.GOOGLE.value: GenerativeProviderKey.GEMINI,
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
model_provider_to_api_key_env_var_map: ClassVar[dict[GenerativeProviderKey, str]] = {
|
|
39
|
+
GenerativeProviderKey.AZURE_OPENAI: "AZURE_OPENAI_API_KEY",
|
|
40
|
+
GenerativeProviderKey.ANTHROPIC: "ANTHROPIC_API_KEY",
|
|
41
|
+
GenerativeProviderKey.OPENAI: "OPENAI_API_KEY",
|
|
42
|
+
GenerativeProviderKey.GEMINI: "GEMINI_API_KEY",
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
@strawberry.field
|
|
38
46
|
async def dependencies(self) -> list[str]:
|
|
39
47
|
from phoenix.server.api.helpers.playground_registry import (
|
|
@@ -58,6 +66,14 @@ class GenerativeProvider:
|
|
|
58
66
|
return default_client.dependencies_are_installed()
|
|
59
67
|
return False
|
|
60
68
|
|
|
69
|
+
@strawberry.field(description="The API key for the provider") # type: ignore
|
|
70
|
+
async def api_key_env_var(self) -> str:
|
|
71
|
+
return self.model_provider_to_api_key_env_var_map[self.key]
|
|
72
|
+
|
|
73
|
+
@strawberry.field(description="Whether the credentials are set on the server for the provider") # type: ignore
|
|
74
|
+
async def api_key_set(self) -> bool:
|
|
75
|
+
return os.environ.get(self.model_provider_to_api_key_env_var_map[self.key]) is not None
|
|
76
|
+
|
|
61
77
|
@classmethod
|
|
62
78
|
def _infer_model_provider_from_model_name(
|
|
63
79
|
cls,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_components-
|
|
3
|
-
"file": "assets/components-
|
|
2
|
+
"_components-BPFARGZY.js": {
|
|
3
|
+
"file": "assets/components-BPFARGZY.js",
|
|
4
4
|
"name": "components",
|
|
5
5
|
"imports": [
|
|
6
6
|
"_vendor-DvC8cT4X.js",
|
|
7
|
-
"_pages-
|
|
7
|
+
"_pages-C_s-dcVH.js",
|
|
8
8
|
"_vendor-arizeai-Do1793cv.js",
|
|
9
9
|
"_vendor-codemirror-BzwZPyJM.js",
|
|
10
10
|
"_vendor-three-DwGkEfCM.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
-
"_pages-
|
|
14
|
-
"file": "assets/pages-
|
|
13
|
+
"_pages-C_s-dcVH.js": {
|
|
14
|
+
"file": "assets/pages-C_s-dcVH.js",
|
|
15
15
|
"name": "pages",
|
|
16
16
|
"imports": [
|
|
17
17
|
"_vendor-DvC8cT4X.js",
|
|
18
18
|
"_vendor-arizeai-Do1793cv.js",
|
|
19
|
-
"_components-
|
|
19
|
+
"_components-BPFARGZY.js",
|
|
20
20
|
"_vendor-codemirror-BzwZPyJM.js",
|
|
21
21
|
"_vendor-recharts-_Jb7JjhG.js"
|
|
22
22
|
]
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"name": "vendor-three"
|
|
70
70
|
},
|
|
71
71
|
"index.tsx": {
|
|
72
|
-
"file": "assets/index-
|
|
72
|
+
"file": "assets/index-DZnxuVKT.js",
|
|
73
73
|
"name": "index",
|
|
74
74
|
"src": "index.tsx",
|
|
75
75
|
"isEntry": true,
|
|
76
76
|
"imports": [
|
|
77
77
|
"_vendor-DvC8cT4X.js",
|
|
78
78
|
"_vendor-arizeai-Do1793cv.js",
|
|
79
|
-
"_pages-
|
|
80
|
-
"_components-
|
|
79
|
+
"_pages-C_s-dcVH.js",
|
|
80
|
+
"_components-BPFARGZY.js",
|
|
81
81
|
"_vendor-three-DwGkEfCM.js",
|
|
82
82
|
"_vendor-codemirror-BzwZPyJM.js",
|
|
83
83
|
"_vendor-shiki-Cl9QBraO.js",
|