arize-phoenix 7.10.2__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arize-phoenix
3
- Version: 7.10.2
3
+ Version: 7.11.0
4
4
  Summary: AI Observability and Evaluation
5
5
  Project-URL: Documentation, https://docs.arize.com/phoenix/
6
6
  Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
@@ -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=NeFw_rz5fBi1Nw5KwUgDLfH5RKIeYQmaWRLI1MHoe1o,23
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
@@ -135,7 +135,7 @@ phoenix/server/api/dataloaders/cache/two_tier_cache.py,sha256=cmo8FUT3E91R139IEz
135
135
  phoenix/server/api/helpers/__init__.py,sha256=m2-xaSPqUiSs91k62JaRDjFNfl-1byxBfY-m_Vxw16U,272
136
136
  phoenix/server/api/helpers/dataset_helpers.py,sha256=DoMBTg-qXTnC_K4Evx1WKpCCYgRbITpVqyY-8efJRf0,8984
137
137
  phoenix/server/api/helpers/experiment_run_filters.py,sha256=DOnVwrmn39eAkk2mwuZP8kIcAnR5jrOgllEwWSjsw94,29893
138
- phoenix/server/api/helpers/playground_clients.py,sha256=HAGZpLp7DUjuuTslo0Yfw2N-TEUKmHJ1XwaRe3mWfyA,38979
138
+ phoenix/server/api/helpers/playground_clients.py,sha256=AUZCc3lgHFi_hoipgK0tBr9eFA5ZEhLpNm7ZRoz7HeU,39035
139
139
  phoenix/server/api/helpers/playground_registry.py,sha256=CPLMziFB2wmr-dfbx7VbzO2f8YIG_k5RftzvGXYGQ1w,2570
140
140
  phoenix/server/api/helpers/playground_spans.py,sha256=qGk7V7IZK7EkRE1mvZyROpLN5kgOahOZifFzUWmqYFc,16546
141
141
  phoenix/server/api/input_types/AddExamplesToDatasetInput.py,sha256=mIQz0S_z8YdrktKIY6RCvtNJ2yZF9pYvTGgasUsI-54,430
@@ -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=3zOR7SssR3mkGAaj8j-_qVzN6H7Qll52J_i98jVyEpA,3127
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=0X2PoKEznH0bU3560si0-LLCP2xUT-69XmW7uKVnKu8,2163
291
- phoenix/server/static/assets/components-CMB_kvRq.js,sha256=i3FlgtH129YHPfsg8a4dYi06Wn1ldoAPjLEjrlyLJmE,390293
292
- phoenix/server/static/assets/index-baAGkuLZ.js,sha256=mhvaZZ3cX7u00MOah0DciE4_LFdrYfuZ5-4fn3fZ8Zw,8711
293
- phoenix/server/static/assets/pages-Cw_XOLII.js,sha256=in4giNaXszn2Dn9mkqWLVu4gk4Km5H6xUwxnV4gq2cg,681219
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.10.2.dist-info/METADATA,sha256=zk6Otqe5BOzVSWPTrvcjtqFq-GBHjkmUTxwHL7oKPgY,23390
341
- arize_phoenix-7.10.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
342
- arize_phoenix-7.10.2.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
343
- arize_phoenix-7.10.2.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
344
- arize_phoenix-7.10.2.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
345
- arize_phoenix-7.10.2.dist-info/RECORD,,
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,,
@@ -478,8 +478,10 @@ class OpenAIStreamingClient(OpenAIBaseStreamingClient):
478
478
  from openai import AsyncOpenAI
479
479
 
480
480
  base_url = model.base_url or os.environ.get("OPENAI_BASE_URL")
481
- if not (api_key := api_key or os.environ.get("OPENAI_API_KEY")) and not base_url:
482
- raise BadRequest("An API key is required for OpenAI models")
481
+ if not (api_key := api_key or os.environ.get("OPENAI_API_KEY")):
482
+ if not base_url:
483
+ raise BadRequest("An API key is required for OpenAI models")
484
+ api_key = "sk-fake-api-key"
483
485
  client = AsyncOpenAI(api_key=api_key, base_url=base_url)
484
486
  super().__init__(client=client, model=model, api_key=api_key)
485
487
  self._attributes[LLM_PROVIDER] = OpenInferenceLLMProviderValues.OPENAI.value
@@ -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-CMB_kvRq.js": {
3
- "file": "assets/components-CMB_kvRq.js",
2
+ "_components-BPFARGZY.js": {
3
+ "file": "assets/components-BPFARGZY.js",
4
4
  "name": "components",
5
5
  "imports": [
6
6
  "_vendor-DvC8cT4X.js",
7
- "_pages-Cw_XOLII.js",
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-Cw_XOLII.js": {
14
- "file": "assets/pages-Cw_XOLII.js",
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-CMB_kvRq.js",
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-baAGkuLZ.js",
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-Cw_XOLII.js",
80
- "_components-CMB_kvRq.js",
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",