mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-24 00:54:19 +01:00
➕ refactor: summarize error message without line number
This commit is contained in:
@@ -52,6 +52,7 @@ BLACKLISTED_PACKAGES = [
|
||||
'tika', # because it needs java
|
||||
'clearbit', # because of installation issues on latest version
|
||||
'pyttsx3', # after engine.save_to_file(summarized_text, "summarized_audio.wav"); engine.runAndWait() "summarized_audio.wav" does not exist
|
||||
'pypng', # if we provide access to the documentation all should be fine but for now it is too hard to use since the import is png
|
||||
]
|
||||
UNNECESSARY_PACKAGES = [
|
||||
'jinja2', 'werkzeug', 'flask', 'flask_restful', 'http.server', 'flask_json', 'flask_cors', 'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead
|
||||
|
||||
@@ -41,10 +41,7 @@ def test_generation_level_1(microservice_dir, mock_input_sequence):
|
||||
"""
|
||||
os.environ['VERBOSE'] = 'true'
|
||||
generator = Generator(
|
||||
'''Input is a tweet that might contain passive aggressive language. The output is the positive version of that tweet.
|
||||
Example tweet:
|
||||
\'When your coworker microwaves fish in the break room... AGAIN. 🐟🤢
|
||||
But hey, at least SOMEONE's enjoying their lunch. #officelife\'''',
|
||||
'''Input is a tweet that contains passive aggressive language. The output is the positive version of that tweet.''',
|
||||
str(microservice_dir),
|
||||
'gpt-3.5-turbo',
|
||||
# self_healing=False,
|
||||
|
||||
@@ -9,5 +9,5 @@ def test_web_search():
|
||||
|
||||
def test_image_search():
|
||||
results = search_images("jina", 10)
|
||||
assert len(results) == 10
|
||||
assert len(results) >= 1
|
||||
assert results[0].startswith("http")
|
||||
|
||||
Reference in New Issue
Block a user