openai / openai-openapi

OpenAPI specification for the OpenAI API
https://platform.openai.com/docs/api-reference/introduction
MIT License
1.3k stars 378 forks source link

system fingerprint is None for some models, but not others #167

Open elisa-abridge opened 10 months ago

elisa-abridge commented 10 months ago

Per the documentation here, the OpenAI API should return a system_fingerprint. However, when calling any model that is not gpt-3.5-turbo-1106 or gpt-4-1106-preview, the system_fingerprint is always None.

The link above doesn't mention any model requirement.

Please update the code to return a system fingerprint for earlier models, or else document in the API which models are actually supported.

To Reproduce

copy and paste notebook here change this line to an older model: GPT_MODEL = "gpt-3.5-turbo-1106" For example: GPT_MODEL = "gpt-3.5-turbo-0613"

the system_fingerprint returned is None

OS-Ubuntu Python version- Python v3.10 Library version- openai v1.6.1

jberryman commented 6 months ago

fwiw with the python sdk I don't get a fingerprint with gpt-3.5-turbo-1106. I do get one with gpt-4-turbo