Skip to content
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

Merged
merged 27 commits into from
Aug 15, 2023

Conversation

smilni
Copy link
Contributor

@smilni smilni commented Jun 28, 2023

No description provided.

EXTERNAL_SKILL_URL = getenv("EXTERNAL_SKILL_URL", None)
PAYLOAD_ARGUMENT_NAME = getenv("PAYLOAD_ARGUMENT_NAME")
if not PAYLOAD_ARGUMENT_NAME:
PAYLOAD_ARGUMENT_NAME = "payload"
Copy link
Collaborator

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")

Copy link
Collaborator

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.")
Copy link
Collaborator

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)}")
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ лишний!

@dilyararimovna dilyararimovna merged commit 8b8fe4b into dev Aug 15, 2023
2 checks passed
@dilyararimovna dilyararimovna deleted the feat/add_external_integration_skill branch August 15, 2023 11:31
oserikov pushed a commit that referenced this pull request Nov 21, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants