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

chore: correct conversational API request methods with latest cortex update #4568

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

louis-menlo
Copy link
Contributor

Describe Your Changes

This PR aims to update the cortex latest version to rectify the API convention issue of using the POST method instead of the PATCH method for update endpoints.

There are two conversational endpoints that scoped in the fix:

  1. Modify a thread

    ky.post(`${API_URL}/v1/threads/${thread.id}`, { json: thread })

  2. Modify a message

    `${API_URL}/v1/threads/${message.thread_id}/messages/${message.id}`,

Fixes Issues

Changes

This pull request includes changes to the CortexConversationalExtension class in the extensions/conversational-extension/src/index.ts file. The changes update the HTTP method used for modifying threads and messages from POST to PATCH.

Key changes:

  • Updated the modifyThread method to use the PATCH HTTP method instead of POST when sending updates to the thread endpoint.
  • Updated the modifyMessage method to use the PATCH HTTP method instead of POST when sending updates to the message endpoint.

@github-actions github-actions bot added the type: chore Maintenance, operational label Feb 4, 2025
@louis-menlo louis-menlo requested a review from urmauur February 4, 2025 09:40
Copy link
Contributor

github-actions bot commented Feb 4, 2025

Barecheck - Code coverage report

Total: 67.61%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

Copy link
Contributor

github-actions bot commented Feb 4, 2025

This is the build for this pull request. You can download it from the Artifacts section here: Build URL.

@louis-menlo louis-menlo merged commit ddc2cd5 into dev Feb 4, 2025
21 checks passed
@louis-menlo louis-menlo deleted the chore/bump-cortex-with-request-method-update branch February 4, 2025 12:25
@github-actions github-actions bot added this to the v0.5.15 milestone Feb 4, 2025
louis-menlo added a commit that referenced this pull request Feb 6, 2025
…#4568)

# Conflicts:
#	extensions/inference-cortex-extension/bin/version.txt
louis-menlo added a commit that referenced this pull request Feb 6, 2025
* chore: correct conversational PATCH methods with latest cortex update (#4568)

# Conflicts:
#	extensions/inference-cortex-extension/bin/version.txt

* chore: bump cortex 1.0.9-rc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore Maintenance, operational
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants