Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

apex_ai.chat message send with weird/different characters.

NicoletteFeb 28 2025

I'm testing the apex_ai.chat function. To test I'm using the code as in de documentation. Only replacing the SERVICE STATIC ID with my own.

De debug shows the following

chat: POST https://api.cohere.ai/v1/chat {"chat_history":[{"role":"CHATBOT","message":"¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿"}],"message":"¿¿¿¿¿¿¿¿¿","model":"command-r","connectors":[{"role":"CHATBOT","message":"¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿","id":"web-search"}]}

Where I would expect the messages “What is Oracle APEX” and “I am an expert in Low Code Application Platforms”

What could be I missing for this to happen?

Code used.

DECLARE
l_messages apex_ai.t_chat_messages;
l_message apex_ai.t_chat_message;
l_response1 clob;
l_response2 clob;
BEGIN
l_response1 := apex_ai.chat(
p_prompt => 'What is Oracle APEX',
p_system_prompt => 'I am an expert in Low Code Application Platforms',
p_service_static_id => 'CohereCommandR',
p_messages => l_messages);
l_response2 := apex_ai.chat(
p_prompt => 'What is new in 23.2',
p_service_static_id => 'CohereCommandR',
p_messages => l_messages);
END;

Nicolette

Comments
Post Details
Added on Feb 28 2025
0 comments
119 views