Skip to content

Fix/system fingerprint nullable #1525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/ChatCompletionStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export interface ChatCompletionSnapshot {
* Can be used in conjunction with the `seed` request parameter to understand when
* backend changes have been made that might impact determinism.
*/
system_fingerprint?: string;
system_fingerprint?: string | null;
}

export namespace ChatCompletionSnapshot {
Expand Down
16 changes: 8 additions & 8 deletions src/resources/chat/completions/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ export interface ChatCompletion {
* utilize scale tier credits until they are exhausted.
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
* be processed using the default service tier with a lower uptime SLA and no
* latency guarentee.
* latency guarantee.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
* tier with a lower uptime SLA and no latency guarantee.
* - If set to 'flex', the request will be processed with the Flex Processing
* service tier.
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
Expand All @@ -299,7 +299,7 @@ export interface ChatCompletion {
* Can be used in conjunction with the `seed` request parameter to understand when
* backend changes have been made that might impact determinism.
*/
system_fingerprint?: string;
system_fingerprint?: string | null;

/**
* Usage statistics for the completion request.
Expand Down Expand Up @@ -531,9 +531,9 @@ export interface ChatCompletionChunk {
* utilize scale tier credits until they are exhausted.
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
* be processed using the default service tier with a lower uptime SLA and no
* latency guarentee.
* latency guarantee.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
* tier with a lower uptime SLA and no latency guarantee.
* - If set to 'flex', the request will be processed with the Flex Processing
* service tier.
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
Expand All @@ -549,7 +549,7 @@ export interface ChatCompletionChunk {
* Can be used in conjunction with the `seed` request parameter to understand when
* backend changes have been made that might impact determinism.
*/
system_fingerprint?: string;
system_fingerprint?: string | null;

/**
* An optional field that will only be present when you set
Expand Down Expand Up @@ -1453,9 +1453,9 @@ export interface ChatCompletionCreateParamsBase {
* utilize scale tier credits until they are exhausted.
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
* be processed using the default service tier with a lower uptime SLA and no
* latency guarentee.
* latency guarantee.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
* tier with a lower uptime SLA and no latency guarantee.
* - If set to 'flex', the request will be processed with the Flex Processing
* service tier.
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
Expand Down
3 changes: 2 additions & 1 deletion src/resources/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export interface Completion {
* Can be used in conjunction with the `seed` request parameter to understand when
* backend changes have been made that might impact determinism.
*/
system_fingerprint?: string;

system_fingerprint?: string | null;

/**
* Usage statistics for the completion request.
Expand Down
8 changes: 4 additions & 4 deletions src/resources/responses/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ export interface Response {
* utilize scale tier credits until they are exhausted.
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
* be processed using the default service tier with a lower uptime SLA and no
* latency guarentee.
* latency guarantee.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
* tier with a lower uptime SLA and no latency guarantee.
* - If set to 'flex', the request will be processed with the Flex Processing
* service tier.
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
Expand Down Expand Up @@ -4631,9 +4631,9 @@ export interface ResponseCreateParamsBase {
* utilize scale tier credits until they are exhausted.
* - If set to 'auto', and the Project is not Scale tier enabled, the request will
* be processed using the default service tier with a lower uptime SLA and no
* latency guarentee.
* latency guarantee.
* - If set to 'default', the request will be processed using the default service
* tier with a lower uptime SLA and no latency guarentee.
* tier with a lower uptime SLA and no latency guarantee.
* - If set to 'flex', the request will be processed with the Flex Processing
* service tier.
* [Learn more](https://platform.openai.com/docs/guides/flex-processing).
Expand Down