Re:OpenAI Function calling and API updates
by singularity2001 on Wednesday June 14, 2023 @12:39AM
(#36321514)
Not sure how well it scales if you need to provide a function definition for every conceivable use case of 'external data': 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"]
}
}
]
[ Parent
| on HN ]
There are no comments on this comment yet.