Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vish123
Creator III
Creator III

OpenAI connector issue in Qlik Cloud - Anyone Encountered below issue ?

We are getting below error while trying to connect with Open AI with Open AI in-built connector within Qlik Cloud.

The example that i am trying is below from official Qlik Article:
https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/ac-openai-tutor...

Example Script :
SourceTable:
NoConcatenate
LOAD
RowNo() as RowId, Text
Inline
[
Text
translate from English to French: What is the time you go to work?
];

[openai]:
LOAD
[id],
[object],
[created],
[model],
[prompt_tokens],
[completion_tokens],
[total_tokens],
[choices.text],
[choices.index],
[choices.logprobs],
[choices.finish_reason],
[RowId]
EXTENSION endpoints.ScriptEval('{"RequestType":"endpoint", "endpoint":{"connectionname":"My Connections Space:Azure_OpenAI"}}', SourceTable{RowId,Text});

This my OpenAI connection Name : "My Connections Space:Azure_OpenAI"

I also confirm that API key is correct and we have enabled Machine Learning Endpoints in QMC.

Error Message:
Connector reply error: grpc::StatusCode::FAILED_PRECONDITION: 'Error while converting required format. Status(StatusCode="FailedPrecondition", Detail="Error returned by endpoint: BadRequest Invalid type for 'messages[0].content': expected one of a string or array of objects, but got a decimal number instead.")'

Please suggest

Labels (2)
0 Replies