Skip to content

Commit bcb672b

Browse files
authored
fix: Avoid crashing when models return the incorrect object const (#401)
1 parent 330157e commit bcb672b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/together/types/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class UsageData(BaseModel):
2626

2727

2828
class ObjectType(str, Enum):
29+
TextCompletion = "text_completion"
2930
Completion = "text.completion"
3031
CompletionChunk = "completion.chunk"
3132
ChatCompletion = "chat.completion"

0 commit comments

Comments
 (0)