exa-py 1.0.13__py3-none-any.whl → 1.0.14__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 exa-py might be problematic. Click here for more details.

exa_py/api.py CHANGED
@@ -335,7 +335,7 @@ class Exa:
335
335
  self,
336
336
  api_key: Optional[str],
337
337
  base_url: str = "https://api.exa.ai",
338
- user_agent: str = "exa-py 1.0.12",
338
+ user_agent: str = "exa-py 1.0.14",
339
339
  ):
340
340
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
341
341
 
exa_py/utils.py CHANGED
@@ -2,13 +2,13 @@ import json
2
2
  from typing import Optional
3
3
  from openai.types.chat import ChatCompletion
4
4
 
5
- from typing import TYPE_CHECKING
5
+ from typing import TYPE_CHECKING
6
6
  if TYPE_CHECKING:
7
7
  from exa_py.api import ResultWithText, SearchResponse
8
8
 
9
9
 
10
10
 
11
- def maybe_get_query(completion) -> str | None:
11
+ def maybe_get_query(completion) -> Optional[str]:
12
12
  """Extract query from completion if it exists."""
13
13
  if completion.choices[0].message.tool_calls:
14
14
  for tool_call in completion.choices[0].message.tool_calls:
@@ -75,4 +75,4 @@ class ExaOpenAICompletion(ChatCompletion):
75
75
  object=completion.object,
76
76
  system_fingerprint=completion.system_fingerprint,
77
77
  usage=completion.usage,
78
- )
78
+ )
@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa-py
3
- Version: 1.0.13
3
+ Version: 1.0.14
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
7
7
  Author-email: hello@exa.ai
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
8
  Classifier: Development Status :: 5 - Production/Stable
11
9
  Classifier: Intended Audience :: Developers
12
10
  Classifier: License :: OSI Approved :: MIT License
@@ -20,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.12
20
18
  Description-Content-Type: text/markdown
21
19
  Requires-Dist: requests
22
20
  Requires-Dist: typing-extensions
23
- Requires-Dist: openai >=1.10.0
21
+ Requires-Dist: openai (>=1.10.0)
24
22
 
25
23
  # Exa
26
24
 
@@ -95,5 +93,3 @@ exa = Exa(api_key="your-api-key")
95
93
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
96
94
  ```
97
95
 
98
-
99
-
@@ -0,0 +1,8 @@
1
+ exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
2
+ exa_py/api.py,sha256=YGLbt-auwLRUeIRJOo3DSkM10M4eIgTNhS-nOF52YQI,27818
3
+ exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
+ exa_py-1.0.14.dist-info/METADATA,sha256=oQKt39AT19Yhp9rVnbHq-00OtL2CDM2Kht8qksaeDtU,3083
6
+ exa_py-1.0.14.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
7
+ exa_py-1.0.14.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
+ exa_py-1.0.14.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.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
2
- exa_py/api.py,sha256=p2XtU7IOLuq7BuQbHPohcwDB2F6RDXsEP6I2D_ywanw,27818
3
- exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- exa_py/utils.py,sha256=pF91TKGGg4SbSVrdWroQze90-D9AlvqLoKWlHIeyLaE,2402
5
- exa_py-1.0.13.dist-info/METADATA,sha256=UtjpLGwc0NjypIS_YGXbP_3C3pQt1cGECYmdI7JWpoc,3118
6
- exa_py-1.0.13.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- exa_py-1.0.13.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
- exa_py-1.0.13.dist-info/RECORD,,