2023-08-16 AUG
Journal Club
MedicaidJS
final report MedicaidJS - paper, code, App
Hackathon
OpenAI July 20, 2023, update
Notes:
Why - letting LLM pull the trigger on function calling
How - "respond with JSON that adheres to the function signature"
Plugins: "chatbots that answer questions by calling external tools"
What: "describe functions to the model via JSON Schema, and optionally ask it to call a specific function"
Completion with functions:
{
"model": "gpt-3.5-turbo-0613",
"messages": [
{
"role": "user",
"content": "What is the weather like in Boston?"
}
],
"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"
]
}
}
]
}
______
Compare with "regular API" calls:
{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7
}