I tested Cohere AI and the results are much better answers and cheaper cost then OpenAI, so I gave it a go to integrate it with a custom action, but unfortunately its not generating any display field for me to get the response from, is this an Adalo issue or Cohere issue? usually with OpenAi we get a lof of fields to display so I m wondering where the issue is?
the code that worked to get a successful custom action is as follows, but I didn’t see a response field, and checking their documentation, they don’t see to have it:
They provide this in python, but no JS code from them, I used GPT to convert it to Json to get it work, I don’t code, but done well without, this is the code for response in Python:
Quick check of the docs, the chat is returned as an array, adalo can’t handle that.
Try adding it as an external collection, as was mentioned recently by another user, I can’t recall who.
Else you will need a 3rd party to parse the array.
I got it to work, but I don’t have a component to display similar to OpenAI, tried several Json codes to get it to display the response, nothing. I reached out to Cohere and Adalo support to understand where the issue is, my guess is that Adalo need to map it to allow us to display the response…might be wrong, will update this thread when I get a solution.