Skip to content

Commit cea6462

Browse files
committed
Update DTOs
1 parent b3b7caf commit cea6462

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

tests/aiserver_dtos.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
""" Options:
2-
Date: 2024-10-23 00:48:18
2+
Date: 2024-10-23 04:53:20
33
Version: 8.41
44
Tip: To override a DTO option, remove "#" prefix before updating
55
BaseUrl: https://openai.servicestack.net
@@ -303,29 +303,6 @@ class AiProviderType(str, Enum):
303303
GOOGLE_AI_PROVIDER = 'GoogleAiProvider'
304304

305305

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-
329306
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
330307
@dataclass
331308
class AiType:
@@ -369,6 +346,29 @@ class AiProvider:
369346
selected_models: Optional[List[str]] = None
370347

371348

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+
372372
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
373373
@dataclass
374374
class OpenAiMessage:

0 commit comments

Comments
 (0)