• Stars
    star
    357
  • Rank 119,149 (Top 3 %)
  • Language
    Python
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A ChatGPT plugin to run BabyAI directly in the chat interface

BabyAGI ChatGPT Plugin (plus search)

This is a ChatGPT plugin based on the BabyAGI project by [@yoheinakajima]. This plugin adapts the original BabyAGI code to work as a plugin using Quart, an asynchronous web framework. I also added search via Google API.

Installation

To install the BabyAGI ChatGPT plugin on Replit:

  1. Make sure the following dependencies are added to the .replit file:
pip install openai quart quart-cors pinecone-client

(Alternatively, run this in shell)

poetry install
  1. Replace the OPENAI_API_KEY and PINECONE_API_KEY and the rest of the variables.
OPENAI_API_KEY = "your_openai_api_key_here"
PINECONE_API_KEY = "your_pinecone_api_key_here"
pinecone_environment="YOUR ENV",
table_name="YOUR TABLE NAME",
GOOGLE_API_KEY = ""
CUSTOM_SEARCH_ENGINE_ID = ""
  1. Upldate your localhost link

  2. Save and run the Repl.

Usage

The plugin provides several API endpoints to interact with BabyAGI:

  • /set_objective: Set the main objective for BabyAGI.
  • /add_task: Add a task to the task list.
  • /get_task_list: Retrieve the current task list.
  • /execute_next_task: Execute the next task in the task list and create new tasks based on the result.

Example

Here's an example of setting the objective, adding a task, and executing the next task using the BabyAGI ChatGPT plugin:

import requests

base_url = "http://localhost:5001"  # Replace with the Repl URL if running on Replit

# Set the objective
objective = "Solve world hunger."
response = requests.post(f"{base_url}/set_objective", json={"objective": objective})
print(response.json())

# Add a task
task_name = "Develop a task list."
response = requests.post(f"{base_url}/add_task", json={"task_name": task_name})
print(response.json())

# Execute the next task
response = requests.post(f"{base_url}/execute_next_task")
print(response.json())

Make sure to replace localhost:5001 with your Replit app URL when running on Replit.

License

This plugin is based on the BabyAGI project by @yoheinakajima (https://github.com/yoheinakajima). Please refer to their repository for licensing information.

Acknowledgments

This plugin is based on the BabyAGI project by @yoheinakajima A big thank you to the author for their original work.

More Repositories

1

maestro

A framework for Claude Opus to intelligently orchestrate subagents.
Python
1,900
star
2

RepoToTextForLLMs

Automate the analysis of GitHub repositories for LLMs with RepoToTextForLLMs. Fetch READMEs, structure, and non-binary files efficiently. Outputs include analysis prompts to aid in comprehensive repo evaluation
Python
492
star
3

DIY-Astra

Python
104
star
4

claude-engineer

Claude Engineer is an interactive command-line interface (CLI) that leverages the power of Anthropic's Claude-3.5-Sonnet model to assist with software development tasks. This tool combines the capabilities of a large language model with practical file system operations and web search functionality.
Python
99
star
5

mlx-assistant

A simple script to enhance text editing across your Mac, leveraging the power of MLX. Designed for seamless integration, it offers real-time text correction everywhere you type.
Python
84
star
6

Moondream2-streamlit

Python
70
star
7

opus-interpreter

A simple Claude-powered code Interpreter
Python
60
star
8

sd3-streamlit

A Streamlit application allows users to generate images using SD3 via Stability AI API.
Python
48
star
9

gptweather

A simple ChatGPT Plugin to check on the weather deployed on Replit.
Python
24
star
10

GPTand11Labs

Python
23
star
11

vercel-ai-gpt16k

TypeScript
21
star
12

giotto-artist-assistant

The very first artist assistant
Python
17
star
13

gemini-ui-to-code

A Streamlit application to generate code from images
Python
13
star
14

OraclesGPT

Python
8
star
15

GPTOS

An OS entirely coded by ChatGPT
Python
7
star
16

Insanely-Fast-Transcription

Insanely Fast Transcription: A Python-based utility for rapid audio transcription from YouTube videos or local files. Leverages GPU acceleration (CUDA/MPS) and the Whisper large-v3 model for blazing-fast, accurate transcriptions. Optimized for both Mac and NVIDIA systems.
Python
5
star
17

Claude-3.5-Sssonnet-

An AI-powered Snake game where Claude, an advanced language model, controls the serpent in real-time, showcasing intelligent decision-making and strategy.
Python
4
star
18

mlx-local-server

A tiny server to run local inference on MLX model in the style of OpenAI
Python
3
star