diff --git a/dev_gpt/options/generate/pm/pm.py b/dev_gpt/options/generate/pm/pm.py index 7f3dfa5..65a7d43 100644 --- a/dev_gpt/options/generate/pm/pm.py +++ b/dev_gpt/options/generate/pm/pm.py @@ -61,7 +61,7 @@ Description of the microservice: context, microservice_description, condition_question='Does the microservice send requests to an 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.', + question_gen='Generate a question that asks for the endpoint of the external API and an example of a request and response when interacting with the external API.', extension_name='Example of API usage', post_transformation_fn=translation(from_format='api instruction', to_format='python code snippet raw without formatting') ) diff --git a/dev_gpt/options/generate/static_files/gateway/custom_gateway.py b/dev_gpt/options/generate/static_files/gateway/custom_gateway.py index 766a6c4..c84e9f9 100644 --- a/dev_gpt/options/generate/static_files/gateway/custom_gateway.py +++ b/dev_gpt/options/generate/static_files/gateway/custom_gateway.py @@ -79,6 +79,7 @@ class CustomGateway(CompositeGateway): f'Please, let http port ({http_port}) be 8080 for nginx to work' ) kwargs['runtime_args']['port'][http_idx] = 8082 + kwargs['cors'] = True super().__init__(**kwargs) # remove potential clashing arguments from kwargs diff --git a/dev_gpt/options/generate/static_files/gateway/requirements.txt b/dev_gpt/options/generate/static_files/gateway/requirements.txt index 91d328c..a5ab956 100644 --- a/dev_gpt/options/generate/static_files/gateway/requirements.txt +++ b/dev_gpt/options/generate/static_files/gateway/requirements.txt @@ -1,3 +1,4 @@ streamlit==1.16.0 +altair==4.2.2 extra-streamlit-components==0.1.55 jina==3.15.1.dev14 \ No newline at end of file