Skip to content

Resolve OpenAI Endpoint Error in PMQL Input Component #6166

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

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

sanjacornelius
Copy link
Contributor

@sanjacornelius sanjacornelius commented Feb 6, 2024

Issue & Reproduction Steps

This PR addresses an issue with the PMQL input component encountering an error related to the OpenAI endpoint. The problem stemmed from the component utilizing a deprecated endpoint openai/nlq-to-pmql. This PR resolves the issue by updating the endpoint to the new one.

Solution

  • Update deprecated endpoint in favor of new endpoint

How to Test

  1. Create a new screen.
  2. Add a select list component.
  3. Configure the select list to utilize either a data source or collection.
  4. In the PMQL input field, enter a command such as where.
  5. Press Enter.
  6. Verify that no errors are displayed.

Related Tickets & Packages

FOUR-14058

ci:next

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

Copy link

Quality Gate passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No Coverage information No data about Coverage
0.0% 0.0% Duplication on New Code

See analysis details on SonarQube

@agustinbusso agustinbusso self-requested a review February 6, 2024 20:02
Copy link
Contributor

@agustinbusso agustinbusso left a comment

Choose a reason for hiding this comment

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

Working as expected

Grabacion.de.pantalla.2024-02-06.a.la.s.17.10.16.mov

@ryancooley ryancooley merged commit c15038e into next Feb 7, 2024
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.

4 participants