GPTRouter 0.2.5__tar.gz → 0.2.7__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.2.5 → GPTRouter-0.2.7}/GPTRouter.egg-info/PKG-INFO +1 -1
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/PKG-INFO +1 -1
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/gpt_router/client.py +6 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/setup.py +1 -1
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/GPTRouter.egg-info/SOURCES.txt +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/GPTRouter.egg-info/dependency_links.txt +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/GPTRouter.egg-info/requires.txt +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/GPTRouter.egg-info/top_level.txt +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/LICENSE +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/README.md +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/gpt_router/__init__.py +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/gpt_router/constants.py +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/gpt_router/enums.py +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/gpt_router/exceptions.py +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/gpt_router/models.py +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/pyproject.toml +0 -0
- {GPTRouter-0.2.5 → GPTRouter-0.2.7}/setup.cfg +0 -0
|
@@ -178,6 +178,9 @@ class GPTRouterClient:
|
|
|
178
178
|
*,
|
|
179
179
|
ordered_generation_requests: List[ModelGenerationRequest],
|
|
180
180
|
is_stream=False,
|
|
181
|
+
tag: Optional[str] = None,
|
|
182
|
+
user_id: Optional[str] = None,
|
|
183
|
+
history_id: Optional[str] = None,
|
|
181
184
|
) -> Union[GenerationResponse, Generator[ChunkedGenerationResponse]]:
|
|
182
185
|
api_path = "/v1/generate"
|
|
183
186
|
api_method = "POST"
|
|
@@ -187,6 +190,9 @@ class GPTRouterClient:
|
|
|
187
190
|
request.dict(exclude_none=True, by_alias=True)
|
|
188
191
|
for request in ordered_generation_requests
|
|
189
192
|
],
|
|
193
|
+
"tag": tag,
|
|
194
|
+
"createdByUserId": user_id,
|
|
195
|
+
"historyId": history_id,
|
|
190
196
|
}
|
|
191
197
|
if is_stream:
|
|
192
198
|
return self.stream_events(
|
|
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
|