exa-py 1.1.7__py3-none-any.whl → 1.1.8__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
@@ -148,7 +148,7 @@ CONTENTS_OPTIONS_TYPES = {
148
148
 
149
149
  # FOR BETA OPTIONS
150
150
  # if is_beta:
151
-
151
+
152
152
 
153
153
  def validate_search_options(
154
154
  options: Dict[str, Optional[object]], expected: dict
@@ -466,7 +466,7 @@ class Exa:
466
466
  self,
467
467
  api_key: Optional[str],
468
468
  base_url: str = "https://api.exa.ai",
469
- user_agent: str = "exa-py 1.0.18",
469
+ user_agent: str = "exa-py 1.1.8",
470
470
  ):
471
471
  """Initialize the Exa client with the provided API key and optional base URL and user agent.
472
472
 
@@ -1171,10 +1171,6 @@ class Exa:
1171
1171
  **openai_kwargs,
1172
1172
  }
1173
1173
 
1174
- if use_exa != "none":
1175
- assert "tools" not in create_kwargs, "Tool use is not supported with Exa"
1176
- create_kwargs["tool_choice"] = use_exa
1177
-
1178
1174
  return self._create_with_tool(
1179
1175
  create_fn=func,
1180
1176
  messages=list(messages),
@@ -1228,8 +1224,6 @@ class Exa:
1228
1224
  exa_result = self.search_and_contents(query, **exa_kwargs)
1229
1225
  exa_str = format_exa_result(exa_result, max_len=max_len)
1230
1226
  new_messages = add_message_to_messages(completion, messages, exa_str)
1231
- # For now, don't allow recursive tool calls
1232
- create_kwargs["tool_choice"] = "none"
1233
1227
  completion = create_fn(messages=new_messages, **create_kwargs)
1234
1228
 
1235
1229
  exa_completion = ExaOpenAICompletion.from_completion(
@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.1
2
- Name: exa-py
3
- Version: 1.1.7
2
+ Name: exa_py
3
+ Version: 1.1.8
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
@@ -19,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
19
17
  Description-Content-Type: text/markdown
20
18
  Requires-Dist: requests
21
19
  Requires-Dist: typing-extensions
22
- Requires-Dist: openai (>=1.10.0)
20
+ Requires-Dist: openai >=1.10.0
23
21
 
24
22
  # Exa
25
23
 
@@ -94,5 +92,3 @@ exa = Exa(api_key="your-api-key")
94
92
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
95
93
  ```
96
94
 
97
-
98
-
@@ -0,0 +1,8 @@
1
+ exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
2
+ exa_py/api.py,sha256=Dypst-1wBEGFLh1rS_RfN9Lh8D1RkviXfJglzstFznI,46362
3
+ exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
+ exa_py-1.1.8.dist-info/METADATA,sha256=KFKYnaij4o-U1iBuJTWAzoQ8ZQd5So6faDQQbFX_h1M,3030
6
+ exa_py-1.1.8.dist-info/WHEEL,sha256=pL8R0wFFS65tNSRnaOVrsw9EOkOqxLrlUPenUYnJKNo,91
7
+ exa_py-1.1.8.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
+ exa_py-1.1.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.0)
2
+ Generator: setuptools (74.1.3)
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=Ew0bqFsCVC5NyD7BJ9fVT292v3z3Axz7cbi_ci-om1k,46645
3
- exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
5
- exa_py-1.1.7.dist-info/METADATA,sha256=FCuU11OAguAvMwWQEbEOtWvRDx3cn93aS9QFeZS1MNg,3069
6
- exa_py-1.1.7.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
7
- exa_py-1.1.7.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
8
- exa_py-1.1.7.dist-info/RECORD,,