64bit / async-openai

Rust library for OpenAI
https://docs.rs/async-openai
MIT License
1.17k stars 178 forks source link

Missing names in ChatCompletionRequest[User, System, Assistant]Message #149

Closed ifsheldon closed 11 months ago

ifsheldon commented 11 months ago

Referring to https://platform.openai.com/docs/api-reference/chat/create, these messages can have names, but I don't find them in ChatCompletionRequestUserMessage or ChatCompletionRequestAssistantMessage or ChatCompletionRequestSystemMessage. This field is seldom used but it counts for tokens and (based on my experiments) is recognizable by GPTs.