Skip to content

Commit 9c26d40

Browse files
authored
Add seed support to completions/chat-completions
1 parent c2b7b7a commit 9c26d40

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@ components:
571571
text:
572572
type: string
573573
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.
574+
seed:
575+
type: integer
574576
finish_reason:
575577
$ref: '#/components/schemas/FinishReason'
576578
logprobs:
@@ -654,6 +656,10 @@ components:
654656
type: float
655657
description: The `logit_bias` parameter allows us to adjust the likelihood of specific tokens appearing in the generated output.
656658
example: { '1024': -10.5, '105': 21.4 }
659+
seed:
660+
type: integer
661+
description: Seed value for reproducibility.
662+
example: 42
657663
CompletionResponse:
658664
type: object
659665
properties:
@@ -710,6 +716,8 @@ components:
710716
allOf:
711717
- $ref: '#/components/schemas/UsageData'
712718
- nullable: true
719+
seed:
720+
type: integer
713721
finish_reason:
714722
allOf:
715723
- $ref: '#/components/schemas/FinishReason'
@@ -749,6 +757,8 @@ components:
749757
example: assistant
750758
content:
751759
type: string
760+
seed:
761+
type: integer
752762
finish_reason:
753763
$ref: '#/components/schemas/FinishReason'
754764
logprobs:
@@ -843,6 +853,10 @@ components:
843853
type: float
844854
description: The `logit_bias` parameter allows us to adjust the likelihood of specific tokens appearing in the generated output.
845855
example: { '1024': -10.5, '105': 21.4 }
856+
seed:
857+
type: integer
858+
description: Seed value for reproducibility.
859+
example: 42
846860
response_format:
847861
type: object
848862
description: Specifies the format of the response.
@@ -926,6 +940,8 @@ components:
926940
allOf:
927941
- $ref: '#/components/schemas/UsageData'
928942
- nullable: true
943+
seed:
944+
type: integer
929945
finish_reason:
930946
allOf:
931947
- $ref: '#/components/schemas/FinishReason'

0 commit comments

Comments
 (0)