exa-py 1.0.12__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
@@ -19,7 +19,7 @@ from typing import (
19
19
  from typing_extensions import TypedDict
20
20
 
21
21
  import httpx
22
- from openai import NOT_GIVEN, NotGiven, OpenAI
22
+ from openai import OpenAI
23
23
  from openai.types.chat.chat_completion_message_param import ChatCompletionMessageParam
24
24
  from openai.types.chat_model import ChatModel
25
25
  from exa_py.utils import (
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa-py
3
- Version: 1.0.12
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
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Description-Content-Type: text/markdown
19
19
  Requires-Dist: requests
20
20
  Requires-Dist: typing-extensions
21
- Requires-Dist: openai
21
+ Requires-Dist: openai (>=1.10.0)
22
22
 
23
23
  # Exa
24
24
 
@@ -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,8 +0,0 @@
1
- exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
2
- exa_py/api.py,sha256=fmPCOzC31meRaBYt2V3skZZDg2xiQaWt60G1Zs5DIHY,27839
3
- exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- exa_py/utils.py,sha256=pF91TKGGg4SbSVrdWroQze90-D9AlvqLoKWlHIeyLaE,2402
5
- exa_py-1.0.12.dist-info/METADATA,sha256=rUIwnAb5tx5U4e9ue8QguSsEZhriJNIJNWxTVEVkSM0,3072
6
- exa_py-1.0.12.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
7
- exa_py-1.0.12.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
- exa_py-1.0.12.dist-info/RECORD,,