Skip to content
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

system_fingerprint type definition is missing in ChatCompletionChunk #443

Open
1 task done
Code-Hex opened this issue Nov 7, 2023 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Code-Hex
Copy link

Code-Hex commented Nov 7, 2023

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

This is an example from the api-reference to the streaming response:

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}

....

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":" today"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"?"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}

Actually, we can get system_fingerprint field from the response but openai api-reference and type definition are missing this field.

To Reproduce

Writing code to ChatCompletionChunk type

Code snippets

No response

OS

macOS

Node version

v18.18.0

Library version

4.16.1

@Code-Hex Code-Hex added the bug Something isn't working label Nov 7, 2023
@Code-Hex Code-Hex changed the title system_fingerprint type definition is missing system_fingerprint type definition is missing in ChatCompletionChunk Nov 7, 2023
rattrayalex added a commit to rattrayalex/openai-openapi that referenced this issue Nov 7, 2023
@rattrayalex
Copy link
Collaborator

Thanks! This will be addressed via openai/openai-openapi#109

@tonymynd
Copy link

tonymynd commented Mar 8, 2024

happy day everyone, where can I learn more about this unique identifier for "system_fingerprint" in relation to "seed" with the goal to make an app with deterministic responses based in a customized knowledge base? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants