mixpeek 0.5.1__py3-none-any.whl → 0.5.2__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.
mixpeek/__init__.py CHANGED
@@ -30,7 +30,11 @@ class Mixpeek:
30
30
  payload = {"input": text}
31
31
  if additional_data is not None:
32
32
  payload.update(additional_data)
33
- return self.mixpeek._send_get(self.embed_url, payload)
33
+ response = self.mixpeek._send_get(self.embed_url, payload)
34
+ if response.get("success"):
35
+ return response["response"]["embedding"]
36
+ else:
37
+ return None
34
38
 
35
39
  class Generate:
36
40
  def __init__(self, mixpeek):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mixpeek
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: full-text file search API
5
5
  Home-page: https://github.com/mixpeek/mixpeek-python
6
6
  Author: Ethan Steininger
@@ -0,0 +1,6 @@
1
+ mixpeek/__init__.py,sha256=ZL1hCXII9RzU8z6oWM7jQUkH3gAr5z772HwcAKVVMVc,3076
2
+ mixpeek-0.5.2.dist-info/LICENSE.rst,sha256=HHFCinDHL38osjHNrBgNZqExYuEWJ3hNZxzcr1mWWeo,1072
3
+ mixpeek-0.5.2.dist-info/METADATA,sha256=Xd-Hy6rscGs7YlZX7qCdjSvqJwPgHTtr9I7LoHQUEO8,281
4
+ mixpeek-0.5.2.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
5
+ mixpeek-0.5.2.dist-info/top_level.txt,sha256=EJ8Jc4IhqyUwnUlBwKbs498Ju4O9a-IDh2kXc_lo6Vg,8
6
+ mixpeek-0.5.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.41.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,6 +0,0 @@
1
- mixpeek/__init__.py,sha256=WGcojZHkdYP89qL44Aeic4mharqEZQsYOw8vC5lRHSo,2929
2
- mixpeek-0.5.1.dist-info/LICENSE.rst,sha256=HHFCinDHL38osjHNrBgNZqExYuEWJ3hNZxzcr1mWWeo,1072
3
- mixpeek-0.5.1.dist-info/METADATA,sha256=1C0wXltRxwmZvSgbJ9sNNrDhRslOthoP0Hv2o7APyGU,281
4
- mixpeek-0.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- mixpeek-0.5.1.dist-info/top_level.txt,sha256=EJ8Jc4IhqyUwnUlBwKbs498Ju4O9a-IDh2kXc_lo6Vg,8
6
- mixpeek-0.5.1.dist-info/RECORD,,