Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurant Finder API

A RESTful API developed with FastAPI and powered by Gemini API (LLM). It transfer natural language messages into a structured JSON commands using the language model and interacts with the Foursquare Places API to find restaurants based on the extracted information.

Features

  • FastAPI documentation
  • LLM-driven API powered by Google's Gemini API
  • Foursquare Places API

Installation

1. Clone repository

  git clone https://github.com/Dariiius/rf-api.git
  cd rf-api

2. Create and activate virtual environment

  python -m venv ./venv
  .\venv\Scripts\activate

3. Install dependencies

  pip install -r requirements.txt

4. Create .env file in root dir

  AUTH_CODE=auth_code_here
  GEMINI_API_KEY=gemini_api_key_here
  FOURSQUARE_API_KEY=foursquare_api_key_here

5. Run server

  fastapi dev main.py --reload

6. Browse the API in your browser

  http://localhost:8000

Note:

  • Response from Gemini API are incorrect sometimes.
  • Google AFC remote call is 10 max

About

A RESTful API developed with FastAPI and powered by Gemini API (LLM). It transfer natural language messages into a structured JSON commands using the language model and interacts with the Foursquare Places API to find restaurants based on the extracted information.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages