Skip to content

Commit 6770828

Browse files
authored
Merge pull request #16 from togethercomputer/orangetin-patch-2
Add seed support to completions/chat-completions
2 parents 2d2e4a3 + 061fa29 commit 6770828

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

openapi.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,8 @@ components:
812812
text:
813813
type: string
814814
example: The capital of France is Paris. It's located in the north-central part of the country and is one of the most populous and visited cities in the world, known for its iconic landmarks like the Eiffel Tower, Louvre Museum, Notre-Dame Cathedral, and more. Paris is also the capital of the Île-de-France region and is a major global center for art, fashion, gastronomy, and culture.
815+
seed:
816+
type: integer
815817
finish_reason:
816818
$ref: '#/components/schemas/FinishReason'
817819
logprobs:
@@ -896,6 +898,10 @@ components:
896898
format: float
897899
description: Adjusts the likelihood of specific tokens appearing in the generated output.
898900
example: { '1024': -10.5, '105': 21.4 }
901+
seed:
902+
type: integer
903+
description: Seed value for reproducibility.
904+
example: 42
899905
CompletionResponse:
900906
type: object
901907
properties:
@@ -952,6 +958,8 @@ components:
952958
allOf:
953959
- $ref: '#/components/schemas/UsageData'
954960
- nullable: true
961+
seed:
962+
type: integer
955963
finish_reason:
956964
allOf:
957965
- $ref: '#/components/schemas/FinishReason'
@@ -1126,6 +1134,10 @@ components:
11261134
format: float
11271135
description: Adjusts the likelihood of specific tokens appearing in the generated output.
11281136
example: { '1024': -10.5, '105': 21.4 }
1137+
seed:
1138+
type: integer
1139+
description: Seed value for reproducibility.
1140+
example: 42
11291141
function_call:
11301142
oneOf:
11311143
- type: string
@@ -1135,7 +1147,6 @@ components:
11351147
properties:
11361148
name:
11371149
type: string
1138-
11391150
response_format:
11401151
type: object
11411152
description: An object specifying the format that the model must output.
@@ -1316,6 +1327,9 @@ components:
13161327
logprobs:
13171328
type: number
13181329
nullable: true
1330+
seed:
1331+
type: integer
1332+
nullable: true
13191333
delta:
13201334
title: ChatCompletionChoiceDelta
13211335
type: object

0 commit comments

Comments
 (0)