|
1 | 1 | """ Options:
|
2 |
| -Date: 2024-10-23 00:48:18 |
| 2 | +Date: 2024-10-23 04:53:20 |
3 | 3 | Version: 8.41
|
4 | 4 | Tip: To override a DTO option, remove "#" prefix before updating
|
5 | 5 | BaseUrl: https://openai.servicestack.net
|
@@ -303,29 +303,6 @@ class AiProviderType(str, Enum):
|
303 | 303 | GOOGLE_AI_PROVIDER = 'GoogleAiProvider'
|
304 | 304 |
|
305 | 305 |
|
306 |
| -@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) |
307 |
| -@dataclass |
308 |
| -class ToolCall: |
309 |
| - """ |
310 |
| - The tool calls generated by the model, such as function calls. |
311 |
| - """ |
312 |
| - |
313 |
| - id: Optional[str] = None |
314 |
| - """ |
315 |
| - The ID of the tool call. |
316 |
| - """ |
317 |
| - |
318 |
| - type: Optional[str] = None |
319 |
| - """ |
320 |
| - The type of the tool. Currently, only `function` is supported. |
321 |
| - """ |
322 |
| - |
323 |
| - function: Optional[str] = None |
324 |
| - """ |
325 |
| - The function that the model called. |
326 |
| - """ |
327 |
| - |
328 |
| - |
329 | 306 | @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
|
330 | 307 | @dataclass
|
331 | 308 | class AiType:
|
@@ -369,6 +346,29 @@ class AiProvider:
|
369 | 346 | selected_models: Optional[List[str]] = None
|
370 | 347 |
|
371 | 348 |
|
| 349 | +@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) |
| 350 | +@dataclass |
| 351 | +class ToolCall: |
| 352 | + """ |
| 353 | + The tool calls generated by the model, such as function calls. |
| 354 | + """ |
| 355 | + |
| 356 | + id: Optional[str] = None |
| 357 | + """ |
| 358 | + The ID of the tool call. |
| 359 | + """ |
| 360 | + |
| 361 | + type: Optional[str] = None |
| 362 | + """ |
| 363 | + The type of the tool. Currently, only `function` is supported. |
| 364 | + """ |
| 365 | + |
| 366 | + function: Optional[str] = None |
| 367 | + """ |
| 368 | + The function that the model called. |
| 369 | + """ |
| 370 | + |
| 371 | + |
372 | 372 | @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
|
373 | 373 | @dataclass
|
374 | 374 | class OpenAiMessage:
|
|
0 commit comments