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

DOCUMENTTAGGING action sometimes needs to remove extraneous double quotes and trailing commas on keys and value/values #149

Closed
reganwolfrom opened this issue Jul 11, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@reganwolfrom
Copy link
Member

reganwolfrom commented Jul 11, 2023

Sometimes OpenAI is returning values with extra quotes, trailing commas, and even array brackets.

This adds extraneous quotes and commas, and can also create a single value instead of values in the case of arrays.

Examples:

{"key":"“partyaddresses”","value":"[{“Great Auk Enterprises”: “9 Bonaventure Avenue, St. John's, NL”}, {“Raphus Productions”: “100 Queen's Park, Toronto, ON.”}],","userId":"System","insertedDate":"2023-07-10T20:22:56+0000","type":"userdefined"}
{"key":"\"secretary\"","value":"\"Aaron Thomas\"","userId":"regan@formkiq.com","insertedDate":"2023-07-11T16:07:27+0000","type":"userdefined"}
{"key":"\"board members\"","value":"[\"Thomas Bewick\",\"Ketill Ketilsson\",\"Farley Mowat\"],","userId":"System","insertedDate":"2023-07-11T16:24:39+0000","type":"userdefined"}
@reganwolfrom reganwolfrom added bug Something isn't working enhancement New feature or request labels Jul 11, 2023
@reganwolfrom reganwolfrom added this to the v1.11.1 milestone Jul 11, 2023
mfriesen added a commit that referenced this issue Jul 13, 2023
mfriesen added a commit that referenced this issue Jul 18, 2023
* #148 - POST /documents/{documentId}/actions fails to run new actions

* #149 - adjusting chatgpt response

* Updated console to v3.2.2

* GET /configuration - Adding mask keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant