exa-py 1.1.7__tar.gz → 1.1.8__tar.gz

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.

@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.1.7
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
@@ -17,6 +15,9 @@ Classifier: Programming Language :: Python :: 3.10
17
15
  Classifier: Programming Language :: Python :: 3.11
18
16
  Classifier: Programming Language :: Python :: 3.12
19
17
  Description-Content-Type: text/markdown
18
+ Requires-Dist: requests
19
+ Requires-Dist: typing-extensions
20
+ Requires-Dist: openai>=1.10.0
20
21
 
21
22
  # Exa
22
23
 
@@ -91,5 +92,3 @@ exa = Exa(api_key="your-api-key")
91
92
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
92
93
  ```
93
94
 
94
-
95
-
@@ -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
@@ -17,6 +15,9 @@ Classifier: Programming Language :: Python :: 3.10
17
15
  Classifier: Programming Language :: Python :: 3.11
18
16
  Classifier: Programming Language :: Python :: 3.12
19
17
  Description-Content-Type: text/markdown
18
+ Requires-Dist: requests
19
+ Requires-Dist: typing-extensions
20
+ Requires-Dist: openai>=1.10.0
20
21
 
21
22
  # Exa
22
23
 
@@ -91,5 +92,3 @@ exa = Exa(api_key="your-api-key")
91
92
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
92
93
  ```
93
94
 
94
-
95
-
@@ -9,5 +9,4 @@ exa_py.egg-info/PKG-INFO
9
9
  exa_py.egg-info/SOURCES.txt
10
10
  exa_py.egg-info/dependency_links.txt
11
11
  exa_py.egg-info/requires.txt
12
- exa_py.egg-info/top_level.txt
13
- test/test.py
12
+ exa_py.egg-info/top_level.txt
@@ -9,7 +9,7 @@ readme = "README.md"
9
9
  python = "^3.9"
10
10
  requests = "^2.32.3"
11
11
  typing-extensions = "^4.12.2"
12
- openai = "^1.10"
12
+ openai = "^1.48"
13
13
 
14
14
  [tool.poetry.group.dev.dependencies]
15
15
  python-dotenv = "^1.0.1"
@@ -22,4 +22,4 @@ requires = ["poetry-core"]
22
22
  build-backend = "poetry.core.masonry.api"
23
23
 
24
24
  [virtualenvs]
25
- in-project = true
25
+ in-project = true
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="exa_py",
5
- version="1.1.7",
5
+ version="1.1.8",
6
6
  description="Python SDK for Exa API.",
7
7
  long_description_content_type="text/markdown",
8
8
  long_description=open("README.md").read(),
exa_py-1.1.7/test/test.py DELETED
@@ -1,12 +0,0 @@
1
- from exa_py import Exa
2
-
3
- exa = Exa("a4e1fa44-f6a3-432b-9725-03677ee13e2e");
4
-
5
- result = exa.get_contents(
6
- ["quizlet.com"],
7
- text=True,
8
- livecrawl="never",
9
- filter_empty_results=False
10
- )
11
-
12
- print(result)
File without changes
File without changes
File without changes
File without changes
File without changes