GPTRouter 0.4.9__tar.gz → 0.5.1__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.4.9
3
+ Version: 0.5.1
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.4.9
3
+ Version: 0.5.1
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
@@ -20,6 +20,7 @@ class ProvidersEnum(Enum):
20
20
  REPLICATE = "replicate"
21
21
  OPENAI_EMBEDDINGS = "openai_embeddings"
22
22
  AZURE_OPENAI_EMBEDDINGS = "azure_openai_embeddings"
23
+ AWS_BEDROCK = "aws_bedrock"
23
24
 
24
25
 
25
26
  class ModelsEnum(Enum):
@@ -16,15 +16,27 @@ class GPTRouterMetadata(BaseModel):
16
16
  created_by_user_id: Optional[str] = None
17
17
  appId: Optional[str] = None
18
18
 
19
+
19
20
  class ThinkingType(str, Enum):
20
21
  ENABLED = "enabled"
21
22
  DISABLED = "disabled"
22
23
 
23
24
 
25
+ class SearchContextSize(str, Enum):
26
+ LOW = "low"
27
+ MEDIUM = "medium"
28
+ HIGH = "high"
29
+
30
+
24
31
  class ExtendedThinking(BaseModel):
25
32
  type: ThinkingType
26
33
  budget_tokens: Optional[int] = 1024
27
34
 
35
+
36
+ class WebSearchOptions(BaseModel):
37
+ search_context_size: Optional[SearchContextSize] = None
38
+
39
+
28
40
  class GenerationParams(BaseModel):
29
41
  messages: Optional[List[Any]] = None
30
42
  max_tokens: Optional[int] = None
@@ -49,6 +61,8 @@ class GenerationParams(BaseModel):
49
61
  raw_event: Optional[bool] = None
50
62
  thinking: Optional[ExtendedThinking] = None
51
63
  colasce_into_thinking_tag: Optional[bool] = None
64
+ use_response_api: Optional[bool] = None
65
+ web_search_options: Optional[WebSearchOptions] = None
52
66
 
53
67
 
54
68
  class ModelGenerationRequest(BaseModel):
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="GPTRouter",
8
- version="0.4.9",
8
+ version="0.5.1",
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