12 points · by acover · 3y ago · 6 comments
Now I can:
* use the same models I program against
* have access to function calls
* can see how much it's costing me
Side benefit: I can share my API key with a friend so they can use Gpt3.5 & 4 as open ai took their deposit but still labelled their account as free tier - mistakes happen.
Prerequisite: an open ai api key
https://github.com/acover288/playgpt
Use at your own risk as I blindly installed npm packages.
Imagine creating the following simple function call:
[
{
"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"]
}
}
]In the future, I want to store the chat history in local storage with some search features.