https://github.com/goodjun/openai-function-calling-sample
This is a sample project that demonstrates how to use Next.js to develop an Open AI function calling application.
https://github.com/goodjun/openai-function-calling-sample
nextjs open-ai openai-function-call react
Last synced: 5 months ago
JSON representation
This is a sample project that demonstrates how to use Next.js to develop an Open AI function calling application.
- Host: GitHub
- URL: https://github.com/goodjun/openai-function-calling-sample
- Owner: goodjun
- License: mit
- Created: 2023-06-29T09:03:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T00:09:33.000Z (about 2 years ago)
- Last Synced: 2024-06-12T07:25:36.377Z (about 2 years ago)
- Topics: nextjs, open-ai, openai-function-call, react
- Language: TypeScript
- Homepage:
- Size: 1.33 MB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Open AI Function Calling Sample
This is a sample project that demonstrates how to use Next.js to develop an Open AI function calling application.
## Screenshot

## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/goodjun/openai-function-calling-sample.git
```
2. Navigate to the project directory:
```bash
cd openai-function-calling-sample
```
3. Install dependencies:
```bash
npm install
# or
yarn install
```
4. Set up environment variables:
- Create a `.env.local` file in the root of the project.
- Add your Open AI API key to the `.env.local` file:
```
TWELVEDATA_API_KEY=your twelvedata api key
OPENAI_API_KEY=your open ai api key
```
5. Start the development server:
```bash
npm run dev
# or
yarn dev
```
6. Open your browser and visit `http://localhost:3000` to see the application.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please create a new issue or submit a pull request.