Closed ferdousbhai closed 1 year ago
The message type can only have 3 possible roles: "system" | "assistant" | "user". Messages can contain an optional name field. This is helpful in some applications, here's an example from OpenAI: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_format_inputs_to_ChatGPT_models.ipynb.
Seems like this got added pretty recent. LGTM.
@ferdousbhai please deno fmt.
deno fmt
@load1n9 please publish a new version after this gets merged
Sure, sorry, my first pull request. 😅
The message type can only have 3 possible roles: "system" | "assistant" | "user". Messages can contain an optional name field. This is helpful in some applications, here's an example from OpenAI: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_format_inputs_to_ChatGPT_models.ipynb.