Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,9 @@
{
"$ref": "#/components/schemas/ChatCompletionContentPartImageWithTitle"
},
{
"$ref": "#/components/schemas/ChatCompletionContentPartInputAudioWithTitle"
},
{
"$ref": "#/components/schemas/ChatCompletionContentPartFileWithTitle"
}
Expand Down Expand Up @@ -1244,6 +1247,62 @@
],
"title": "image_url"
},
"ChatCompletionContentPartInputAudioWithTitle": {
"type": "object",
"properties": {
"input_audio": {
"type": "object",
"properties": {
"data": {
"type": "string"
},
"format": {
"type": "string",
"enum": [
"wav",
"mp3"
]
}
},
"required": [
"data",
"format"
]
},
"type": {
"type": "string",
"enum": [
"input_audio"
]
},
"cache_control": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"ephemeral"
]
},
"ttl": {
"type": "string",
"enum": [
"5m",
"1h"
]
}
},
"required": [
"type"
]
}
},
"required": [
"input_audio",
"type"
],
"title": "input_audio"
},
"ChatCompletionContentPartText": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -6055,6 +6114,21 @@
}
],
"description": "The configuration for the automation rule"
},
"runtime_block": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"model": {
"type": "string"
}
},
"required": [
"reason",
"model"
]
}
},
"required": [
Expand Down
23 changes: 23 additions & 0 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,22 @@ class ChatCompletionContentPartImageWithTitle(TypedDict):
cache_control: NotRequired[ChatCompletionContentPartImageWithTitleCacheControl | None]


class ChatCompletionContentPartInputAudioWithTitleInputAudio(TypedDict):
data: str
format: Literal['wav', 'mp3']


class ChatCompletionContentPartInputAudioWithTitleCacheControl(TypedDict):
type: Literal['ephemeral']
ttl: NotRequired[Literal['5m', '1h'] | None]


class ChatCompletionContentPartInputAudioWithTitle(TypedDict):
input_audio: ChatCompletionContentPartInputAudioWithTitleInputAudio
type: Literal['input_audio']
cache_control: NotRequired[ChatCompletionContentPartInputAudioWithTitleCacheControl | None]


class ChatCompletionContentPartTextCacheControl(TypedDict):
type: Literal['ephemeral']
ttl: NotRequired[Literal['5m', '1h'] | None]
Expand Down Expand Up @@ -1861,6 +1877,11 @@ class ProjectAutomationConfig4(TypedDict):
"""


class ProjectAutomationRuntimeBlock(TypedDict):
reason: str
model: str


class ProjectGroup(TypedDict):
id: str
"""
Expand Down Expand Up @@ -3300,6 +3321,7 @@ class AttachmentStatus(TypedDict):
ChatCompletionContentPart: TypeAlias = (
ChatCompletionContentPartTextWithTitle
| ChatCompletionContentPartImageWithTitle
| ChatCompletionContentPartInputAudioWithTitle
| ChatCompletionContentPartFileWithTitle
)

Expand Down Expand Up @@ -4201,6 +4223,7 @@ class ProjectAutomation(TypedDict):
"""
The configuration for the automation rule
"""
runtime_block: NotRequired[ProjectAutomationRuntimeBlock | None]


class ProjectLogsEvent(TypedDict):
Expand Down
4 changes: 3 additions & 1 deletion py/src/braintrust/generated_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Auto-generated file (content hash 71b5715e9b2fb9f0) -- do not modify"""
"""Auto-generated file (content hash 00a5cbc989890b20) -- do not modify"""

from ._generated_types import (
Acl,
Expand All @@ -20,6 +20,7 @@
ChatCompletionContentPartFileFile,
ChatCompletionContentPartFileWithTitle,
ChatCompletionContentPartImageWithTitle,
ChatCompletionContentPartInputAudioWithTitle,
ChatCompletionContentPartText,
ChatCompletionContentPartTextWithTitle,
ChatCompletionMessageParam,
Expand Down Expand Up @@ -148,6 +149,7 @@
"ChatCompletionContentPartFileFile",
"ChatCompletionContentPartFileWithTitle",
"ChatCompletionContentPartImageWithTitle",
"ChatCompletionContentPartInputAudioWithTitle",
"ChatCompletionContentPartText",
"ChatCompletionContentPartTextWithTitle",
"ChatCompletionMessageParam",
Expand Down