mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-20 07:04:20 +01:00
≈Merge branch 'main' of github.com:jina-ai/microchain into fix_bring_back_the_test_description_for_func_generation
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
DOCKER_BASE_IMAGE_VERSION = '0.0.6'
|
DOCKER_BASE_IMAGE_VERSION = '0.0.8'
|
||||||
|
|
||||||
EXECUTOR_FILE_NAME = '__init__.py'
|
EXECUTOR_FILE_NAME = '__init__.py'
|
||||||
IMPLEMENTATION_FILE_NAME = 'microservice.py'
|
IMPLEMENTATION_FILE_NAME = 'microservice.py'
|
||||||
|
|||||||
@@ -2,15 +2,14 @@ from dev_gpt.apis.gpt import ask_gpt
|
|||||||
from dev_gpt.options.generate.parser import identity_parser
|
from dev_gpt.options.generate.parser import identity_parser
|
||||||
|
|
||||||
|
|
||||||
def user_feedback_loop(context, current_description):
|
def user_feedback_loop(current_description):
|
||||||
while (user_feedback := get_user_feedback(current_description)):
|
while (user_feedback := get_user_feedback(current_description)):
|
||||||
context['user_feedback'] = user_feedback
|
|
||||||
current_description = ask_gpt(
|
current_description = ask_gpt(
|
||||||
add_feedback_prompt,
|
add_feedback_prompt,
|
||||||
identity_parser,
|
identity_parser,
|
||||||
**context
|
microservice_description=current_description,
|
||||||
|
user_feedback=user_feedback,
|
||||||
)
|
)
|
||||||
del context['user_feedback']
|
|
||||||
return current_description
|
return current_description
|
||||||
|
|
||||||
def get_user_feedback(microservice_description):
|
def get_user_feedback(microservice_description):
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ Description of the microservice:
|
|||||||
def refine_description(self, microservice_description):
|
def refine_description(self, microservice_description):
|
||||||
context = {'microservice_description': microservice_description}
|
context = {'microservice_description': microservice_description}
|
||||||
auto_refine_description(context)
|
auto_refine_description(context)
|
||||||
microservice_description = user_feedback_loop(context, context['microservice_description'])
|
microservice_description = user_feedback_loop(context['microservice_description'])
|
||||||
|
|
||||||
test_description = ask_gpt(
|
test_description = ask_gpt(
|
||||||
generate_test_assertion_prompt,
|
generate_test_assertion_prompt,
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ FROM jinaai/jina:3.15.1-dev14-py39-standard
|
|||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
|
|
||||||
# install media dependencies
|
# install media dependencies
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg build-essential pkg-config libpoppler-cpp-dev
|
RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg build-essential pkg-config libpoppler-cpp-dev libespeak1
|
||||||
5
setup.py
5
setup.py
@@ -24,8 +24,9 @@ setup(
|
|||||||
description='Use natural language interface to generate, deploy and update your microservice infrastructure.',
|
description='Use natural language interface to generate, deploy and update your microservice infrastructure.',
|
||||||
long_description=open('README.md', 'r', encoding='utf-8').read(),
|
long_description=open('README.md', 'r', encoding='utf-8').read(),
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
author='Florian Hönicke',
|
author='Jina AI',
|
||||||
author_email='florian.hoenicke@jina.ai',
|
author_email='hello@jina.ai',
|
||||||
|
license='Apache 2.0',
|
||||||
url='https://github.com/jina-ai/dev-gpt',
|
url='https://github.com/jina-ai/dev-gpt',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user