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

[CAI-183] Chatbot Patch query api #1198

Merged
merged 46 commits into from
Oct 22, 2024
Merged

[CAI-183] Chatbot Patch query api #1198

merged 46 commits into from
Oct 22, 2024

Conversation

batdevis
Copy link
Collaborator

List of Changes

Update badAnswer query field.

curl example:

curl -X 'PATCH' "http://localhost:8080/sessions/$SESSION_ID/queries/$ID" \
    -H 'Content-Type: application/json'   -d '{
    "badAnswer": true
  }'

Motivation and Context

We want to save the feedback about the answer.

@batdevis batdevis requested a review from a team as a code owner October 11, 2024 09:55
Copy link

changeset-bot bot commented Oct 11, 2024

⚠️ No Changeset found

Latest commit: 9ca62dd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 22, 2024

Jira Pull Request Link

This Pull Request refers to the following Jira issue CAI-183

@@ -115,12 +119,12 @@ def find_or_create_session(userId: str, now: datetime.datetime):
if userId is None:
userId = '-'

SESSION_MAX_DURATION_DAYS = int(os.getenv('SESSION_MAX_DURATION_DAYS', '1'))
SESSION_MAX_DURATION_DAYS = float(os.getenv('CHB_SESSION_MAX_DURATION_DAYS', '1'))
Copy link
Collaborator

Choose a reason for hiding this comment

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

why float?

@batdevis batdevis merged commit f346179 into main Oct 22, 2024
13 checks passed
@batdevis batdevis deleted the patch-query-api branch October 22, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants