GPTRouter 0.4.4__tar.gz → 0.4.5__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.4
3
+ Version: 0.4.5
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.4
3
+ Version: 0.4.5
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,7 +1,7 @@
1
1
  from uuid import UUID
2
2
  from pydantic import BaseModel, Field
3
3
 
4
- from typing import List, Optional, Dict, Any
4
+ from typing import List, Optional, Dict, Any, Union
5
5
  from humps import camelize
6
6
 
7
7
 
@@ -29,7 +29,7 @@ class GenerationParams(BaseModel):
29
29
  functions: Optional[List[Any]] = None
30
30
  function_call: Optional[dict] = None
31
31
  tools: Optional[List[Any]] = None
32
- tool_choice: Optional[str] = None
32
+ tool_choice: Optional[Union[str, dict]] = None
33
33
  response_format: Optional[Dict[str, Any]] = None
34
34
  parallel_tool_calls: Optional[bool] = None
35
35
  tag: Optional[str] = None
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="GPTRouter",
8
- version="0.4.4",
8
+ version="0.4.5",
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