Module chat_completion

Source
Expand description

mainly use model text-gpt-3.5-turbo and gpt-3.5-turbo-0301 api: POST https://api.openai.com/v1/chat/completions

Structs§

ChatCompletionsChoice
ChatCompletionsParams
ChatCompletionsResponse

Functions§

chat_completions
Use model text-gpt-3.5-turbo to generate a chat completion.
chat_completions_full
Has the ability to support context chat by passing prompt in the form of an array of hashmap that contiain role and content