exa-py 1.0.13__tar.gz → 1.0.14__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.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
@@ -92,5 +90,3 @@ exa = Exa(api_key="your-api-key")
92
90
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
93
91
  ```
94
92
 
95
-
96
-
@@ -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
 
@@ -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
@@ -92,5 +90,3 @@ exa = Exa(api_key="your-api-key")
92
90
  highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
93
91
  ```
94
92
 
95
-
96
-
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="exa_py",
5
- version="1.0.13",
5
+ version="1.0.14",
6
6
  description="Python SDK for Exa API.",
7
7
  long_description_content_type="text/markdown",
8
8
  long_description=open("README.md").read(),
File without changes
File without changes
File without changes
File without changes