openai / openai-openapi

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

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

Open elisa-abridge opened 8 months ago

elisa-abridge commented 8 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 4 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