sashabaranov / go-openai

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Apache License 2.0
9.25k stars 1.42k forks source link

Implement new `store` and `metadata` params #872

Open akshaylb opened 1 month ago

akshaylb commented 1 month ago

Is your feature request related to a problem? Please describe. OpenAI recently introduced new parameters for distillation.

Describe the solution you'd like Implement store and metadata fields for the chat completion request. And add a .WithStore(bool) and .WithMetadata(map[string]string) for the OpenAI Client.

unitythemaker commented 1 month ago

I think this is added with: https://github.com/sashabaranov/go-openai/pull/870

Not sure about .WithStore(bool) and .WithMetadata(map[string]string) though.

unitythemaker commented 1 month ago

Hmm, it seems like Store option is not added yet for Chat Completions.