GPTRouter 0.5.3__tar.gz → 0.5.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.
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/GPTRouter.egg-info/PKG-INFO +1 -1
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/PKG-INFO +1 -1
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/gpt_router/models.py +8 -3
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/setup.py +1 -2
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/GPTRouter.egg-info/SOURCES.txt +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/GPTRouter.egg-info/dependency_links.txt +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/GPTRouter.egg-info/requires.txt +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/GPTRouter.egg-info/top_level.txt +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/LICENSE +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/README.md +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/gpt_router/__init__.py +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/gpt_router/client.py +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/gpt_router/constants.py +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/gpt_router/enums.py +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/gpt_router/exceptions.py +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/pyproject.toml +0 -0
- {GPTRouter-0.5.3 → GPTRouter-0.5.4}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from uuid import UUID
|
|
2
2
|
from pydantic import BaseModel, Field, root_validator, validator
|
|
3
3
|
from enum import Enum
|
|
4
|
-
from typing import Dict, List, Optional, Any, Union
|
|
4
|
+
from typing import Dict, List, Literal, Optional, Any, Union
|
|
5
5
|
from humps import camelize
|
|
6
6
|
|
|
7
7
|
|
|
@@ -62,6 +62,7 @@ class GenerationParams(BaseModel):
|
|
|
62
62
|
colasce_into_thinking_tag: Optional[bool] = None
|
|
63
63
|
use_response_api: Optional[bool] = None
|
|
64
64
|
web_search_options: Optional[WebSearchOptions] = None
|
|
65
|
+
reasoning_effort: Optional[Literal["low", "medium", "high"]] = None
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
class ModelGenerationRequest(BaseModel):
|
|
@@ -119,6 +120,10 @@ class ImageGenerationRequest(BaseModel):
|
|
|
119
120
|
width: Optional[int] = Field(None, alias="width")
|
|
120
121
|
height: Optional[int] = Field(None, alias="height")
|
|
121
122
|
num_inference_steps: Optional[int] = Field(None, alias="numInferenceSteps")
|
|
123
|
+
app_id: Optional[str] = Field(None, alias="appId")
|
|
124
|
+
user_id: Optional[str] = Field(None, alias="createdByUserId")
|
|
125
|
+
history_id: Optional[str] = Field(None, alias="historyId")
|
|
126
|
+
feature: Optional[str] = Field(None, alias="feature")
|
|
122
127
|
|
|
123
128
|
class Config:
|
|
124
129
|
allow_population_by_field_name = True
|
|
@@ -151,11 +156,11 @@ class ImageEditRequest(BaseModel):
|
|
|
151
156
|
response_format: Optional[str] = Field(alias="responseFormat", default=None)
|
|
152
157
|
size: Optional[str] = Field(default="1024x1024")
|
|
153
158
|
user: Optional[str] = Field(default=None)
|
|
154
|
-
|
|
159
|
+
|
|
155
160
|
class Config:
|
|
156
161
|
allow_population_by_field_name = True
|
|
157
162
|
protected_namespaces = ()
|
|
158
|
-
|
|
163
|
+
|
|
159
164
|
def dict(self, *args, **kwargs):
|
|
160
165
|
base_dict = super().dict(*args, **kwargs, exclude_none=True, by_alias=True)
|
|
161
166
|
return base_dict
|
|
@@ -3,10 +3,9 @@ from setuptools import setup
|
|
|
3
3
|
with open("README.md", "r") as fh:
|
|
4
4
|
long_description = fh.read()
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
setup(
|
|
8
7
|
name="GPTRouter",
|
|
9
|
-
version="0.5.
|
|
8
|
+
version="0.5.4",
|
|
10
9
|
description="A Python package for working with GPTRouter APIs",
|
|
11
10
|
long_description=long_description,
|
|
12
11
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|