GPTRouter 0.5.0__tar.gz → 0.5.2__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: 0.5.0
3
+ Version: 0.5.2
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: 0.5.0
3
+ Version: 0.5.2
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
@@ -22,11 +22,21 @@ class ThinkingType(str, Enum):
22
22
  DISABLED = "disabled"
23
23
 
24
24
 
25
+ class SearchContextSize(str, Enum):
26
+ LOW = "low"
27
+ MEDIUM = "medium"
28
+ HIGH = "high"
29
+
30
+
25
31
  class ExtendedThinking(BaseModel):
26
32
  type: ThinkingType
27
33
  budget_tokens: Optional[int] = 1024
28
34
 
29
35
 
36
+ class WebSearchOptions(BaseModel):
37
+ search_context_size: Optional[SearchContextSize] = None
38
+
39
+
30
40
  class GenerationParams(BaseModel):
31
41
  messages: Optional[List[Any]] = None
32
42
  max_tokens: Optional[int] = None
@@ -52,6 +62,7 @@ class GenerationParams(BaseModel):
52
62
  thinking: Optional[ExtendedThinking] = None
53
63
  colasce_into_thinking_tag: Optional[bool] = None
54
64
  use_response_api: Optional[bool] = None
65
+ web_search_options: Optional[WebSearchOptions] = None
55
66
 
56
67
 
57
68
  class ModelGenerationRequest(BaseModel):
@@ -87,6 +98,7 @@ class GenerationResponse(BaseModel):
87
98
  provider_id: Optional[str] = Field(None, alias="providerId")
88
99
  model_id: Optional[str] = Field(None, alias="modelId")
89
100
  meta: Optional[Usage]
101
+ citations: Optional[List[str]] = None
90
102
 
91
103
  class Config:
92
104
  alias_generator = to_camel
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="GPTRouter",
8
- version="0.5.0",
8
+ version="0.5.2",
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