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