Adalo vs Cohere AI

Hello everyone

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?

Thank you


VS

What does ‘show full response’ look like for Cohere?

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:

{
“model”: “command-r”,
“message”: “”,
“temperature”: 0.3,
“chat_history”: [
{
“role”: “user”,
“message”: “Create a performance plan”
}
],
“prompt_truncation”: “AUTO”,
“stream”: true,
“citation_quality”: “accurate”,
“connectors”: ,
“documents”:
}

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:

print(response)

Looks like Adalo is not mapping the response:

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.

1 Like

did you get the cohere api to work?

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.

well i built one thats why im asking

i thought of making a component for that after seeing your post , wanna check it out?

if yes ill figure out to how to only send it to you to test out tomorrow(haven`t done that yet)

1 Like

Yes it would be great if you do so, thank you

okay contact me at Loomisgitarrist@yahoo.de please

1 Like

you can take a look here

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.