Skip to content

Commit fbafea8

Browse files
feat(api): api update
1 parent 5586ce5 commit fbafea8

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-8c61fd3ae251ce79f67c32573916bda50ee22e9920f1b21b76112481a9b6a634.yml
3-
openapi_spec_hash: e9ddc769a7881becb3d795c7eae76fdb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-7fc851eadc5f55ee4013bf7bd47ee2d278ade903f0d3136990c661f952d21381.yml
3+
openapi_spec_hash: 01fff617ca6ea1d0feb75fb232148f98
44
config_hash: b4b85388c0f7669e312feacd8c0b9c87

src/together/types/chat/chat_completion.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ..tool_choice import ToolChoice
99
from .chat_completion_usage import ChatCompletionUsage
1010

11-
__all__ = ["ChatCompletion", "Choice", "ChoiceMessage", "ChoiceMessageFunctionCall"]
11+
__all__ = ["ChatCompletion", "Choice", "ChoiceMessage", "ChoiceMessageFunctionCall", "Warning"]
1212

1313

1414
class ChoiceMessageFunctionCall(BaseModel):
@@ -41,6 +41,10 @@ class Choice(BaseModel):
4141
text: Optional[str] = None
4242

4343

44+
class Warning(BaseModel):
45+
message: Optional[str] = None
46+
47+
4448
class ChatCompletion(BaseModel):
4549
id: str
4650

@@ -53,3 +57,5 @@ class ChatCompletion(BaseModel):
5357
object: Literal["chat.completion"]
5458

5559
usage: Optional[ChatCompletionUsage] = None
60+
61+
warnings: Optional[List[Warning]] = None

src/together/types/chat/chat_completion_chunk.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ..tool_choice import ToolChoice
88
from .chat_completion_usage import ChatCompletionUsage
99

10-
__all__ = ["ChatCompletionChunk", "Choice", "ChoiceDelta", "ChoiceDeltaFunctionCall"]
10+
__all__ = ["ChatCompletionChunk", "Choice", "ChoiceDelta", "ChoiceDeltaFunctionCall", "Warning"]
1111

1212

1313
class ChoiceDeltaFunctionCall(BaseModel):
@@ -40,6 +40,10 @@ class Choice(BaseModel):
4040
seed: Optional[int] = None
4141

4242

43+
class Warning(BaseModel):
44+
message: Optional[str] = None
45+
46+
4347
class ChatCompletionChunk(BaseModel):
4448
id: str
4549

@@ -54,3 +58,5 @@ class ChatCompletionChunk(BaseModel):
5458
system_fingerprint: Optional[str] = None
5559

5660
usage: Optional[ChatCompletionUsage] = None
61+
62+
warnings: Optional[List[Warning]] = None

0 commit comments

Comments
 (0)