MCPcopy
hub / github.com/jina-ai/dev-gpt

github.com/jina-ai/dev-gpt @v0.18.44 sqlite

repository ↗ · DeepWiki ↗ · release v0.18.44 ↗
258 symbols 974 edges 86 files 21 documented · 8%
README

Dev-GPT: Your Automated Development Team

⚠️ This is an experimental version. ⚠️

Product Manager Product Manager Developer Developer DevOps DevOps

Tell your AI team what microservice you want to build, and they will do it for you. Your imagination is the limit!

Test Coverage Package version Supported Python versions Supported platforms Downloads

Welcome to Dev-GPT, where we bring your ideas to life with the power of advanced artificial intelligence! Our automated development team is designed to create microservices tailored to your specific needs, making your software development process seamless and efficient. Comprised of a virtual Product Manager, Developer, and DevOps, our AI team ensures that every aspect of your project is covered, from concept to deployment.

Quickstart

pip install dev-gpt
dev-gpt generate

Requirements

  • OpenAI key with access to gpt-3.5-turbo or gpt-4
  • if you want to enable your microservice to search for web content, you need to set the GOOGLE_API_KEY and GOOGLE_CSE_ID environment variables. More information can be found here.
dev-gpt configure --openai_api_key <your openai api key>
dev-gpt configure --google_api_key <google api key> (optional if you want to use google custom search)
dev-gpt configure --google_cse_id <google cse id> (optional if you want to use google custom search)

If you set the environment variable OPENAI_API_KEY, the configuration step can be skipped. Your api key must have access to gpt-4 to use this tool. We are working on a way to use gpt-3.5-turbo as well.

Docs

Generate Microservice

dev-gpt generate \
--description "<description of the microservice>" \
--model <gpt-3.5-turbo or gpt-4> \
--path </path/to/local/folder>

To generate your personal microservice two things are required: - A description of the task you want to accomplish. (optional) - The model you want to use - either gpt-3.5-turbo or gpt-4. gpt-3.5-turbo is ~10x cheaper, but will not be able to generate as complex microservices. (default: largest you have access to) - A path on the local drive where the microservice will be generated. (default: ./microservice)

The creation process should take between 5 and 15 minutes. During this time, GPT iteratively builds your microservice until it finds a strategy that make your test scenario pass.

Be aware that the costs you have to pay for openai vary between $0.50 and $3.00 per microservice using GPT-4 or $0.05 to $0.30 for GPT-3.5-Trubo.

Run Microservice

Run the microservice locally in docker. In case docker is not running on your machine, it will try to run it without docker. With this command a playground opens in your browser where you can test the microservice.

dev-gpt run --path <path to microservice>

Deploy Microservice

If you want to deploy your microservice to the cloud a Jina account is required. When creating a Jina account, you get some free credits, which you can use to deploy your microservice ($0.025/hour). If you run out of credits, you can purchase more.

dev-gpt deploy --microservice_path <path to microservice>

Delete Microservice

To save credits you can delete your microservice via the following commands:

jc list # get the microservice id
jc delete <microservice id>

Examples

In this section you can get a feeling for the kind of microservices that can be generated with Dev-GPT.

Compliment Generator

dev-gpt generate \
--description "The user writes something and gets a related deep compliment." \
--model gpt-4

Compliment Generator

Extract and summarize news articles given a URL

dev-gpt generate \
--description "Extract text from a news article URL using Newspaper3k library and generate a summary using gpt. Example input: http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/" \
--model gpt-4

News Article Example

Chemical Formula Visualization

dev-gpt generate \
--description "Convert a chemical formula into a 2D chemical structure diagram. Example inputs: C=C, CN=C=O, CCC(=O)O" \
--model gpt-4

Chemical Formula Visualization

2d rendering of 3d model

dev-gpt generate \
--description "create a 2d rendering of a whole 3d object and x,y,z object rotation using trimesh and pyrender.OffscreenRenderer with os.environ['PYOPENGL_PLATFORM'] = 'egl' and freeglut3-dev library - example input: https://graphics.stanford.edu/courses/cs148-10-summer/as3/code/as3/teapot.obj" \
--model gpt-4

2D Rendering of 3D Model

Product Recommendation

dev-gpt generate \
--description "Generate personalized product recommendations based on user product browsing history and the product categories fashion, electronics and sport. Example: Input: browsing history: prod1(electronics),prod2(fashion),prod3(fashion), output: p4(fashion)" \
--model gpt-4

Product Recommendation

Hacker News Search

dev-gpt generate \
--description "Given a search query, find articles on hacker news using the hacker news api and return a list of (title, author, website_link, first_image_on_the_website)" \
--model gpt-4
````
<img src="https://github.com/jina-ai/dev-gpt/raw/v0.18.44/res/hacker_news_example.png" alt="Hacker News Search" width="400" />

### Animal Detector
```bash

dev-gpt generate \
--description "Given an image, return the image with bounding boxes of all animals (https://pjreddie.com/media/files/yolov3.weights, https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov3.cfg), Example input: https://images.unsplash.com/photo-1444212477490-ca407925329e" \
--model gpt-4

Animal Detector

Meme Generator

dev-gpt generate \
--description "Generate a meme from an image and a caption. Example input: https://media.wired.com/photos/5f87340d114b38fa1f8339f9/master/w_1600%2Cc_limit/Ideas_Surprised_Pikachu_HD.jpg, TOP:When you discovered GPT Dev" \
--model gpt-4

Meme Generator

Rhyme Generator

dev-gpt generate \
--description "Given a word, return a list of rhyming words using the datamuse api" \
--model gpt-4

Rhyme Generator

Word Cloud Generator

dev-gpt generate \
--description "Generate a word cloud from a given text" \
--model gpt-4

Word Cloud Generator

3d model info

dev-gpt generate \
--description "Given a 3d object, return vertex count and face count. Example: https://raw.githubusercontent.com/polygonjs/polygonjs-assets/master/models/wolf.obj" \
--model gpt-4

3D Model Info

Table extraction

dev-gpt generate \
--description "Given a URL, extract all tables as csv. Example: http://www.ins.tn/statistiques/90" \
--model gpt-4

Table Extraction

Audio to mel spectrogram

dev-gpt generate \
--description "Create mel spectrogram from audio file. Example: https://cdn.pixabay.com/download/audio/2023/02/28/audio_550d815fa5.mp3" \
--model gpt-4

Audio to Mel Spectrogram

Text to speech

dev-gpt generate \
--description "Convert text to speech" \
--model gpt-4

Text to Speech

Your browser does not support the audio element.

Heatmap Generator

dev-gpt generate \
--description "Create a heatmap from an image and a list of relative coordinates. Example input: https://images.unsplash.com/photo-1574786198875-49f5d09fe2d2, [[0.1, 0.2], [0.3, 0.4], [0.5, 0.6], [0.2, 0.1], [0.7, 0.2], [0.4, 0.2]]" \
--model gpt-4

Heatmap Generator

QR Code Generator

dev-gpt generate \
--description "Generate QR code from URL. Example input: https://www.example.com" \
--model gpt-4 

QR Code Generator

Mandelbrot Set Visualizer

dev-gpt generate \
--description "Visualize the Mandelbrot set with custom parameters. Example input: center=-0+1i, zoom=1.0, size=800x800, iterations=1000" \
--model gpt-4

Mandelbrot Set Visualizer

Markdown to HTML Converter

dev-gpt generate --description "Convert markdown to HTML"

Markdown to HTML Converter

//: # (### Wa

Core symbols most depended-on inside this repo

ask_gpt
called by 21
dev_gpt/apis/gpt.py
print_colored
called by 13
dev_gpt/utils/string_tools.py
is_package_on_pypi
called by 10
dev_gpt/apis/pypi.py
extract_content_from_result
called by 8
dev_gpt/options/generate/generator.py
generate_and_persist_file
called by 8
dev_gpt/options/generate/generator.py
generate
called by 8
dev_gpt/options/generate/generator.py
chat
called by 8
dev_gpt/apis/gpt.py
context_to_string
called by 7
dev_gpt/options/generate/prompt_factory.py

Shape

Function 134
Method 89
Class 28
Route 7

Languages

Python99%
TypeScript1%

Modules by API surface

dev_gpt/options/generate/generator.py32 symbols
dev_gpt/apis/jina_cloud.py19 symbols
dev_gpt/apis/gpt.py16 symbols
test/integration/test_generator.py14 symbols
examples/rainbow_tweet/microservice/PositiveTweetModifierExecutor3163055/0_gpt_3_5_turbo/v3/gateway/custom_gateway.py13 symbols
dev_gpt/options/generate/static_files/gateway/custom_gateway.py13 symbols
dev_gpt/cli.py9 symbols
dev_gpt/options/generate/pm/pm.py8 symbols
dev_gpt/options/generate/conversation_logger.py8 symbols
test/unit/test_tools.py6 symbols
dev_gpt/options/__init__.py6 symbols
test/conftest.py5 symbols

Dependencies from manifests, versioned

altair4.2.2 · 1×
docarray0.21.0 · 1×
extra-streamlit-components0.1.55 · 1×
jina3.15.1.dev14 · 1×
langchain0.0.153 · 1×
openai0.27.5 · 1×
pydantic1.10.7 · 1×
streamlit1.9.0 · 1×
typing-inspect0.8.0 · 1×
typing_extensions4.5.0 · 1×

For agents

$ claude mcp add dev-gpt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact