We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I may have missed it, but in case I didn't I think the ChatMessageRoles Class should probably include a function Role:
public static class ChatMessageRoles { public static string System => "system"; public static string User => "user"; public static string Assistant => "assistant"; **public static string Function => "function";** }
as defined in the new OpenAI API (See "role":"function")
curl https://api.openai.com/v1/chat/completions -u :$OPENAI_API_KEY -H 'Content-Type: application/json' -d '{ "model": "gpt-3.5-turbo-0613", "messages": [ {"role": "user", "content": "What is the weather like in Boston?"}, {"role": "assistant", "content": null, "function_call": {"name": "get_current_weather", "arguments": "{ \"location\": \"Boston, MA\"}"}}, **{"role": "function", "name": "get_current_weather", "content": "{\"temperature\": "22", \"unit\": \"celsius\", \"description\": \"Sunny\"}"}** ], "functions": [ { "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" }, "unit": { "type": "string", "enum": ["celsius", "fahrenheit"] } }, "required": ["location"] } } ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I may have missed it, but in case I didn't I think the ChatMessageRoles Class should probably include a function Role:
as defined in the new OpenAI API (See "role":"function")
The text was updated successfully, but these errors were encountered: