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:
14
test/unit/test_self_refinement.py
Normal file
14
test/unit/test_self_refinement.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
|
||||
from dev_gpt.apis.gpt import GPTSession
|
||||
from dev_gpt.options.generate.chains.auto_refine_description import enhance_description
|
||||
|
||||
|
||||
def test_better_description(tmpdir):
|
||||
os.environ['VERBOSE'] = 'true'
|
||||
GPTSession(os.path.join(str(tmpdir), 'log.json'), model='gpt-3.5-turbo')
|
||||
|
||||
better_description = enhance_description({
|
||||
'microservice_description': 'Input is a tweet that contains passive aggressive language. The output is the positive version of that tweet.'
|
||||
})
|
||||
assert 'gpt_3_5_turbo' in better_description
|
||||
Reference in New Issue
Block a user