mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-22 16:14:20 +01:00
🎚 refactor: correct gpt example
This commit is contained in:
@@ -57,7 +57,7 @@ UNNECESSARY_PACKAGES = [
|
||||
]
|
||||
|
||||
LANGUAGE_PACKAGES = [
|
||||
'allennlp', 'bertopic', 'GPT-3', 'fasttext', 'flair', 'gensim', 'nltk', 'openai',
|
||||
'allennlp', 'bertopic', 'gpt-3', 'fasttext', 'flair', 'gensim', 'nltk', 'openai',
|
||||
'pattern', 'polyglot', 'pytorch-transformers', 'rasa', 'sentence-transformers',
|
||||
'spacy', 'stanza', 'summarizer', 'sumy', 'textblob', 'textstat', 'transformers',
|
||||
'vadersentiment'
|
||||
|
||||
@@ -38,10 +38,11 @@ Update the description of the Microservice to make it more precise without addin
|
||||
Note: the output must be a list of tasks the Microservice has to perform.
|
||||
Note: you can uses two tools if necessary:
|
||||
{get_available_tools()}
|
||||
Example for the description: "return a description of the average temperature of the 5 days weather forecast for a given location."
|
||||
1. get the 5 days weather forcast from the https://openweathermap.org/ API
|
||||
2. extract the temperature from the response
|
||||
3. calculate the average temperature'''
|
||||
Example for the description: "return an image representing the current weather for a given location."
|
||||
1. get the current weather information from the https://openweathermap.org/ API
|
||||
2. generate a Google search query to find the image matching the weather information and the location by using gpt-3.5-turbo
|
||||
3. find the image by using the Google search API
|
||||
4. return the image as a base64 encoded string'''
|
||||
|
||||
generate_request_schema_prompt = '''{context_string}
|
||||
Generate the lean request json schema of the Microservice.
|
||||
|
||||
Reference in New Issue
Block a user