refactor: cleanup

This commit is contained in:
Florian Hönicke
2023-05-10 11:19:15 +02:00
parent 2eb9d1a6ac
commit 8882a50a95
3 changed files with 3 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ UNNECESSARY_PACKAGES = [
] ]
LANGUAGE_PACKAGES = [ LANGUAGE_PACKAGES = [
'allennlp', 'bertopic', 'fasttext', 'flair', 'gensim', 'nltk', 'allennlp', 'bertopic', 'fasttext', 'flair', 'gensim', 'nltk', 'openai',
'pattern', 'polyglot', 'pytorch-transformers', 'rasa', 'sentence-transformers', 'pattern', 'polyglot', 'pytorch-transformers', 'rasa', 'sentence-transformers',
'spacy', 'stanza', 'summarizer', 'sumy', 'textblob', 'textstat', 'transformers' 'spacy', 'stanza', 'summarizer', 'sumy', 'textblob', 'textstat', 'transformers'
] ]

View File

@@ -1,7 +1,6 @@
import json import json
from dev_gpt.apis.gpt import ask_gpt from dev_gpt.apis.gpt import ask_gpt
from dev_gpt.options.generate.chains.extract_information import extract_information
from dev_gpt.options.generate.parser import identity_parser from dev_gpt.options.generate.parser import identity_parser
from dev_gpt.options.generate.prompt_factory import context_to_string from dev_gpt.options.generate.prompt_factory import context_to_string

View File

@@ -63,7 +63,6 @@ Description of the microservice:
question_gen='Generate a question that asks for the endpoint and an example of a request and response when interacting with the external API.', question_gen='Generate a question that asks for the endpoint and an example of a request and response when interacting with the external API.',
extension_name='Example of API usage', extension_name='Example of API usage',
) )
# database missing
return microservice_description, test_description return microservice_description, test_description
def user_input_extension_if_needed(self, context, microservice_description, condition_question, question_gen, extension_name): def user_input_extension_if_needed(self, context, microservice_description, condition_question, question_gen, extension_name):
@@ -372,11 +371,9 @@ Response json schema:
``` ```
{response_schema} {response_schema}
``` ```
Generate the description of the test scenario for the microservice. Generate the description of the test scenario for the microservice that asserts that the output is of the correct python type for a given input.
Note: you must only output the test description - nothing else. Note: you must only output the test description - nothing else.
Note: you must not use any formatting like triple backticks. Note: you must not use any formatting like triple backticks.'''
Note: the test must insert data in defined in the request schema and validate that the type of the response is matching with the response schema.
'''
if __name__ == '__main__': if __name__ == '__main__':
gpt_session = gpt.GPTSession('GPT-3.5-turbo') gpt_session = gpt.GPTSession('GPT-3.5-turbo')