beekeeper-ai 0.6.2__py3-none-any.whl → 0.6.4__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.
beekeeper/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.6.2"
1
+ __version__ = "0.6.4"
@@ -185,7 +185,7 @@ class WatsonxExternalPromptMonitoring:
185
185
  )
186
186
 
187
187
  try:
188
- if self._fact_cpd_creds:
188
+ if hasattr(self, '_fact_cpd_creds') and self._fact_cpd_creds:
189
189
  cpd_creds = CloudPakforDataConfig(**self._fact_cpd_creds)
190
190
 
191
191
  aigov_client = AIGovFactsClient(
@@ -220,14 +220,14 @@ class WatsonxExternalPromptMonitoring:
220
220
  from ibm_watsonx_ai import APIClient, Credentials # type: ignore
221
221
 
222
222
  try:
223
- if self._wml_cpd_creds:
223
+ if hasattr(self, '_wml_cpd_creds') and self._wml_cpd_creds:
224
224
  creds = Credentials(**self._wml_cpd_creds)
225
225
 
226
226
  wml_client = APIClient(creds)
227
227
  wml_client.set.default_space(self.space_id)
228
228
 
229
229
  else:
230
- creds = Credentials({"url": REGIONS_URL[self.region]["wml"], "apikey": self._api_key})
230
+ creds = Credentials(url= REGIONS_URL[self.region]["wml"], apikey=self._api_key)
231
231
  wml_client = APIClient(creds)
232
232
  wml_client.set.default_space(self.space_id)
233
233
 
@@ -563,7 +563,7 @@ class WatsonxPromptMonitoring:
563
563
  )
564
564
 
565
565
  try:
566
- if self._fact_cpd_creds:
566
+ if hasattr(self, '_fact_cpd_creds') and self._fact_cpd_creds:
567
567
  cpd_creds = CloudPakforDataConfig(**self._fact_cpd_creds)
568
568
 
569
569
  aigov_client = AIGovFactsClient(
@@ -598,14 +598,14 @@ class WatsonxPromptMonitoring:
598
598
  from ibm_watsonx_ai import APIClient, Credentials # type: ignore
599
599
 
600
600
  try:
601
- if self._wml_cpd_creds:
601
+ if hasattr(self, '_wml_cpd_creds') and self._wml_cpd_creds:
602
602
  creds = Credentials(**self._wml_cpd_creds)
603
603
 
604
604
  wml_client = APIClient(creds)
605
605
  wml_client.set.default_space(self.space_id)
606
606
 
607
607
  else:
608
- creds = Credentials({"url": REGIONS_URL[self.region]["wml"], "apikey": self._api_key})
608
+ creds = Credentials(url= REGIONS_URL[self.region]["wml"], apikey=self._api_key)
609
609
 
610
610
  wml_client = APIClient(creds)
611
611
  wml_client.set.default_space(self.space_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: beekeeper-ai
3
- Version: 0.6.2
3
+ Version: 0.6.4
4
4
  Summary: Load any data in one line of code and connect with AI applications
5
5
  Home-page: https://github.com/leonardofurnielis/beekeeper
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- beekeeper/__init__.py,sha256=jFlbxEJFS0G44LE-yXXVSwXACA1J_NyYDk5E20_2zpc,22
1
+ beekeeper/__init__.py,sha256=WMmvm2Keb76yMz8OL_h4fKT34Xpi-1BVfCiTn2QGzz4,22
2
2
  beekeeper/core/document/__init__.py,sha256=6l28uskkwzxQhnX_Ov9NmXQ3JAF5vXJk6cuQR3zRqwg,126
3
3
  beekeeper/core/document/schema.py,sha256=72jWAkBAU8DtRA90jYdhbUqax1a0Yx76NgAYxQj6UFU,2534
4
4
  beekeeper/core/document_loaders/__init__.py,sha256=OH0Y6Nf66bdi8vv_o-dldndHhmfM74y8s9ilgvG_Crk,93
@@ -21,7 +21,7 @@ beekeeper/embeddings/watsonx.py,sha256=w7Fbz74B_XDLu7aE9_haXI77oCUyFLhrSFgHuMCZ3
21
21
  beekeeper/evaluation/__init__.py,sha256=SzRQHkUqgzRoiccHknu0juMutSyF1dI_-AeuBZOCe_E,123
22
22
  beekeeper/evaluation/knowledge_base_coverage.py,sha256=YkjrqQAmUU7ul0ZVcO7MN62EIkk-nMKQCRF-HD19WmU,2268
23
23
  beekeeper/monitor/__init__.py,sha256=Zgx2OaGiid3pnNnBrI-YjCNE0KdWX3g3sOhbCEhhYY8,258
24
- beekeeper/monitor/watsonx.py,sha256=FyLkbBNjmDJ_dhg3Vf0-S1Jktkml_UdTmz6TjraMaKs,42435
24
+ beekeeper/monitor/watsonx.py,sha256=pH-qlXvqrtOfSfrL4ss75B_4vMbjttRBvhXQJmE82BI,42565
25
25
  beekeeper/retrievers/__init__.py,sha256=Py1X7DfxNyMozQX1LBl0jSZyft05OD04yglqBVpP3mQ,122
26
26
  beekeeper/retrievers/watson_discovery.py,sha256=evn9MGBUE2WkL7r_mg1zlSNZpp7XuxfG0HgeDiSeUyU,5121
27
27
  beekeeper/text_splitters/__init__.py,sha256=HkRHuwi-v5Xtwnr3ELkf_eG9WfXtuq3FFf_Zn8QUOuE,275
@@ -31,7 +31,7 @@ beekeeper/text_splitters/token.py,sha256=HgGf7V_RHvkl0C_Jmjr0pgdAqmcI9qKBeVqDEb-
31
31
  beekeeper/vector_stores/__init__.py,sha256=sH7pUh-3ln9EzZOJm4mz2z1BJFqJStsuogl-XvuatvQ,208
32
32
  beekeeper/vector_stores/chroma.py,sha256=89ebsNs4JYCpM6SYY6pYy2nuH5gv4TxjxMrz729XE1w,3997
33
33
  beekeeper/vector_stores/elasticsearch.py,sha256=GTLCvxv8ne-S3fEG8HcONlpagJ1o5PJxtdE_JoM4aTs,7318
34
- beekeeper_ai-0.6.2.dist-info/LICENSE,sha256=TC5Fo1FSsyuLJTlNFbY0zCa08wcY5OmMW3RdKOId37s,1071
35
- beekeeper_ai-0.6.2.dist-info/METADATA,sha256=W-Di7BRADTfhv-aPCuj6-FgOUivSptK8d0tmMF0f3wE,1962
36
- beekeeper_ai-0.6.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
37
- beekeeper_ai-0.6.2.dist-info/RECORD,,
34
+ beekeeper_ai-0.6.4.dist-info/LICENSE,sha256=TC5Fo1FSsyuLJTlNFbY0zCa08wcY5OmMW3RdKOId37s,1071
35
+ beekeeper_ai-0.6.4.dist-info/METADATA,sha256=0nNupPQQ0A7Lx4OJVoN2WCq4hfy6tRsWciiFpke5AkU,1962
36
+ beekeeper_ai-0.6.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
37
+ beekeeper_ai-0.6.4.dist-info/RECORD,,