https://github.com/onebeyond/openai-function-calling-study
https://github.com/onebeyond/openai-function-calling-study
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onebeyond/openai-function-calling-study
- Owner: onebeyond
- Created: 2023-06-20T19:23:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T19:49:52.000Z (over 2 years ago)
- Last Synced: 2024-12-30T12:46:17.008Z (about 1 year ago)
- Language: Python
- Size: 136 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chatfn - ChatGPT function calling study
A synple python app to experiment with OpenAI Function call feature.
## Setup
```bash
pip install requests pandas tenacity termcolor
```
## How to run
You will need to provide OpenAI API key either in `OPENAI_API_KEY` environment variable or when asked by the program.
Python 3.9+ is required.
```bash
OPENAI_API_KEY=sk-*** python chatfn.py
```
## How to use
Just type in something about weather forecasts. You could start with
`Give me 10 day forecast for London.` or `What is the weather like in Berlin?`
You can read more interesting examples in this [blog post about GPT nested function calls](https://medium.com/@peter.zentai/gpt-nested-function-calls-and-conversational-workflow-exploration-885a632b39aa)

## What functions are exposed to GPT?
Lets ask GPT about it:
