GPTRouter 1.0.2__tar.gz → 1.0.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GPTRouter
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A Python package for working with GPTRouter APIs
5
5
  Author-email: sirjanpreet@writesonic.com
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GPTRouter
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A Python package for working with GPTRouter APIs
5
5
  Author-email: sirjanpreet@writesonic.com
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -46,7 +46,7 @@ class UserLocation(BaseModel):
46
46
 
47
47
  class WebSearchOptions(BaseModel):
48
48
  search_context_size: Optional[SearchContextSize] = None
49
- user_location: Optional[Union[UserLocation, dict]] = None
49
+ user_location: Optional[Union[dict, UserLocation]] = None
50
50
 
51
51
 
52
52
  class GenerationParams(BaseModel):
@@ -75,7 +75,7 @@ class GenerationParams(BaseModel):
75
75
  colasce_into_thinking_tag: Optional[bool] = None
76
76
  use_response_api: Optional[bool] = None
77
77
  web_search_options: Optional[WebSearchOptions] = None
78
- reasoning_effort: Optional[Literal["low", "medium", "high"]] = None
78
+ reasoning_effort: Optional[Literal["minimal", "low", "medium", "high"]] = None
79
79
 
80
80
 
81
81
  class ModelGenerationRequest(BaseModel):
@@ -102,6 +102,7 @@ class Choice(BaseModel):
102
102
  finish_reason: str
103
103
  role: Optional[str] = None
104
104
  function_call: Optional[Any] = None
105
+ citations: Optional[List[dict | Any]] = None
105
106
 
106
107
 
107
108
  class GenerationResponse(BaseModel):
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="GPTRouter",
8
- version="1.0.2",
8
+ version="1.0.4",
9
9
  description="A Python package for working with GPTRouter APIs",
10
10
  long_description=long_description,
11
11
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes