https://github.com/ozgrozer/openai-assistants-api-with-function-calling
AI assistant that fetches real-time stock prices by using OpenAI's Assistants API with function calling
https://github.com/ozgrozer/openai-assistants-api-with-function-calling
ai assistant assistant-chat-bots chatgpt function-calling openai
Last synced: 30 days ago
JSON representation
AI assistant that fetches real-time stock prices by using OpenAI's Assistants API with function calling
- Host: GitHub
- URL: https://github.com/ozgrozer/openai-assistants-api-with-function-calling
- Owner: ozgrozer
- Created: 2024-05-04T10:03:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-08T12:58:17.000Z (over 1 year ago)
- Last Synced: 2024-12-29T13:45:04.717Z (9 months ago)
- Topics: ai, assistant, assistant-chat-bots, chatgpt, function-calling, openai
- Language: JavaScript
- Homepage: https://x.com/ozgrozer/status/1786734362219647236
- Size: 130 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# OpenAI Assistants API with Function Calling
Just a demo of OpenAI's Assistants API with function calling, currently it checks for the realtime stock prices
## Preview
## Usage
Clone this repository
```
git clone https://github.com/ozgrozer/openai-assistants-api-with-function-calling.git
```Install dependencies
```
yarn install
# or
npm install
```Duplicate `.env.example` as `.env` and update your credentials
```
cp .env.example .env
vim .env
```Run the script
```
node get-stock-prices.js
```And here's the expected result
```
Hey there, I am your personal assistant
Type q to quitPrompt: What's the stock price of Nvidia?
The current stock price of Nvidia is $887.89.Prompt: q
```