Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drylikov/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/drylikov/openai-assistants-api-with-function-calling
Last synced: 8 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/drylikov/openai-assistants-api-with-function-calling
- Owner: drylikov
- License: mit
- Created: 2024-08-16T07:23:04.000Z (3 months ago)
- Default Branch: drylikov
- Last Pushed: 2024-08-16T07:25:20.000Z (3 months ago)
- Last Synced: 2024-08-16T08:38:53.751Z (3 months ago)
- Language: JavaScript
- Size: 131 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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/drylikov/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
```