-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add external integration skill #504
Conversation
services/external_fake_server/service_configs/external-fake-service/service.yml
Outdated
Show resolved
Hide resolved
services/external_fake_server/service_configs/external-fake-service/service.yml
Outdated
Show resolved
Hide resolved
skills/external_integration_skill/service_configs/external-integration-skill/service.yml
Outdated
Show resolved
Hide resolved
skills/external_integration_skill/service_configs/external-integration-skill/environment.yml
Show resolved
Hide resolved
EXTERNAL_SKILL_URL = getenv("EXTERNAL_SKILL_URL", None) | ||
PAYLOAD_ARGUMENT_NAME = getenv("PAYLOAD_ARGUMENT_NAME") | ||
if not PAYLOAD_ARGUMENT_NAME: | ||
PAYLOAD_ARGUMENT_NAME = "payload" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PAYLOAD_ARGUMENT_NAME = getenv("PAYLOAD_ARGUMENT_NAME", "payload")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
etc
if not RESPONSE_KEY: | ||
RESPONSE_KEY = "response" | ||
|
||
assert "EXTERNAL_SKILL_URL", logger.info("You need to provide the external skill url to get its responses.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably it is better to raise logger.error
confidence = 0.0 | ||
responses.append(response) | ||
confidences.append(confidence) | ||
logger.info(f"Responses: {str(responses)}, confidences: {str(confidences)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those logs are will be repeated for every element of the batch
ARGUMENTS_TO_SEND: dialog_id | ||
PAYLOAD_ARGUMENT_NAME: payload | ||
RESPONSE_KEY: response | ||
REQUEST_TIMEOUT: 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
параметры здесь не соответствуют тем, что в карточке в environment.yml
REQUEST_TIMEOUT: 10 | ||
context: . | ||
dockerfile: ./skills/external_integration_skill/Dockerfile | ||
command: gunicorn --workers=1 server:app -b 0.0.0.0:$8183 --timeout=300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ лишний!
* dff_external_integration_skill first commit * added yml files; added formatter * draft of external integration skill * fake external server * server filez * wip * working version of fake server/skill; tests * text fix * update ymls and fix some bugs * change port * style * revert unnecessary changes * update acc to review * ports and comments n2 * fixes * style * style * formatter * external service timeout * revert accidential change * fixes for Dilya * flake8 fix! * fix old port in readme
No description provided.