Skip to content

linj121/nl2api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natural Language to API Call in Your Termimal

About

  • A polyglot gpt assistant that answers any question for you
  • Support checking weather of the current day in one or more locations. Locations can be inferred intelligently based on the context

chat example2

Quick Start

Environment setup

* This project has only been tested on NodeJS v.20.12.2

cp .env.example .env and configure .env

API_KEY Description
OPENWEATHERMAP_API_KEY API Key in your OpenWeatherMap account: https://home.openweathermap.org/api_keys
OPENAI_API_KEY API Key in your OpenAI account: https://platform.openai.com/settings/profile?tab=api-keys
OPENAI_MODEL By default: gpt-3.5-turbo. View a list of available models from OpenAI: https://platform.openai.com/docs/models

Run the project

Docker

  • Coming soon...

Local

Roadmap

  • Add initial system prompt to increase accuracy

  • Docker

  • Rewrite with TypeScript

  • Refactor with proper OOP, ideally a plugin system

  • More APIs

How does this work

flow chart Source

Resources on function calling

About

OpenAI function calling demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors