18
Views
3
Comments
Solved
[ChatGPT Assistant V2 Framework] Error: no secret key was registered
Application Type
Service

Hi I'm new to outsystems and am currently trying to use this chatgpt assistant v2 framework, but i keep stumbling across this error message when I try to call ProcessFileWithAssistant, even in the Demo. I'm assuming it is related to an api key (or lack thereof?), but I cannot find any point in the asset where there are any api calls or headers where i can specify the api key?

Any insight or help would be much appreciated. Thank you.

2019-11-05 11-01-40
Preeti Kumari
Solution

@Clara Aw  Looks like you have not set up secret key, Please check the documentation part of the component.

Start from https://platform.openai.com/docs/overview then check the API documentation https://platform.openai.com/docs/api-reference/authentication . You need to configure the API key (SITE variable on the module), and on the DEMO module the ASSISTANT_ID (SITE variable). 


Thanks,

Preeti

UserImage.jpg
Clara Aw

Thanks for the reply, I set up the api key as you pointed out and the error is gone. 

Now when i call ProcessFileWithAssistant on my application, I get this error message instead. As the method RunAssistant is in the main module, I am unable to access the 'response_format' as shown in the error message. Have you ever encountered this error before?

 

2021-11-12 04-59-31
Manikandan Sambasivam

Hi,

Please check their documentation

https://www.outsystems.com/forge/component-documentation/18748/chatgpt-assistant-v2-framework-o11/0

You need to configure the API key (SITE variable on the module) 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.