Skip to content

Commit 76bfa92

Browse files
Merge pull request #19 from VellummyilumVinoth/main
Change system_fingerprint to nullable
2 parents 3602190 + 1927303 commit 76bfa92

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

ballerina/types.bal

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public type CreateChatCompletionResponse record {
514514
# This fingerprint represents the backend configuration that the model runs with.
515515
#
516516
# Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
517-
string system_fingerprint?;
517+
string? system_fingerprint?;
518518
# The object type, which is always `chat.completion`.
519519
"chat.completion" 'object;
520520
CompletionUsage usage?;

docs/spec/openapi.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13816,6 +13816,7 @@ components:
1381613816
Can be used in conjunction with the `seed` request parameter to
1381713817
understand when backend changes have been made that might impact
1381813818
determinism.
13819+
nullable: true
1381913820
object:
1382013821
type: string
1382113822
description: The object type, which is always `chat.completion`.
@@ -24938,4 +24939,4 @@ x-oaiMeta:
2493824939
path: create
2493924940
- type: object
2494024941
key: CreateCompletionResponse
24941-
path: object
24942+
path: object

docs/spec/sanitations.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,23 @@ These changes are done in order to improve the overall usability, and as workaro
2121

2222
- **Reason**: This change is done as a temporary workaround until the Ballerina OpenAPI tool supports OpenAPI Specification version v3.1.x (Currently supported upto version 3.0.0).
2323

24+
2. **Added `nullable: true` property to system_fingerprint**:
25+
26+
- **Changed Schemas**: `CreateCompletionResponse`
27+
28+
- **Updated**:
29+
- `system_fingerprint:
30+
// ... Omitted for brevity
31+
nullable = true`
32+
33+
- **Reason**: This change explicitly specifies that the system_fingerprint field can be null, which is important for proper schema validation and client code generation.
34+
35+
2436
## OpenAPI cli command
2537

2638
The following command was used to generate the Ballerina client from the OpenAPI specification. The command should be executed from the repository root directory.
2739

2840
```bash
2941
bal openapi -i docs/spec/openapi.yaml --mode client --tags Chat --license docs/license.txt -o ballerina
3042
```
31-
Note: The license year is hardcoded to 2024, change if necessary.
43+
Note: The license year is hardcoded to 2024, change if necessary.

0 commit comments

Comments
 (0)