feat: support for gpt

This commit is contained in:
Florian Hönicke
2023-04-20 00:30:22 +02:00
parent db3a05771b
commit 7fa5052874
2 changed files with 14 additions and 7 deletions

View File

@@ -99,6 +99,17 @@ jc delete <microservice id>
## Examples
In this section you can get a feeling for the kind of microservices that can be generated with GPT Deploy.
### Extract and summarize news articles given a URL
```bash
gptdeploy generate \
--description "Extract text from a news article URL using Newspaper3k library and generate a summary." \
--test "input: 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/' output: assert a summarized version of the article exists" \
--model gpt-4 \
--path microservice
```
<img src="res/news_article_example.png" alt="News Article Example" width="400" />
### Chemical Formula Visualization
```bash
gptdeploy generate \
@@ -122,10 +133,10 @@ gptdeploy generate \
### Product Recommendation
```bash
gptdeploy generate \
--description "Generate personalized product recommendations based on user product browsing history and the product categories fashion, electronics and sport" --test "Test that a user how visited p1(electronics),p2(fashion),p3(fashion) is more likely to buy p4(fashion) than p5(sports)" \
--description "Generate personalized product recommendations based on user product browsing history and the product categories fashion, electronics and sport" \
--test "Test that a user how visited p1(electronics),p2(fashion),p3(fashion) is more likely to buy p4(fashion) than p5(sports)" \
--model gpt-4 \
--path microservice \
--verbose
--path microservice
```
<img src="res/recommendation_example.png" alt="Product Recommendation" width="400" />
@@ -512,7 +523,6 @@ In the following, you can find a list of things that need to be done.
next steps:
- [ ] check if windows and linux support works
- [ ] support gpt3.5-turbo
- [ ] add video to README.md
- [ ] bug: it can happen that the code generation is hanging forever - in this case aboard and redo the generation
- [ ] new user has free credits but should be told to verify account
@@ -524,7 +534,6 @@ Nice to have:
- [ ] don't show this message:
🔐 You are logged in to Jina AI as florian.hoenicke (username:auth0-unified-448f11965ce142b6).
To log out, use jina auth logout.
- [ ] rest endpoint instead of grpc since it is more popular
- [ ] put the playground into the custom gateway (without rebuilding the custom gateway)
- [ ] hide prompts in normal mode and show them in verbose mode
- [ ] tests

View File

@@ -294,5 +294,3 @@ def process_error_message(error_message):
if not response and last_line.startswith('error: '):
return last_line
return response
push_executor('/Users/florianhonicke/jina/gptdeploy/microservice/NewsArticleSummaryExecutor7754860')