Chat GPT (OpenAI) integration help

Andrew_TND
Mega Sage
Mega Sage

Hello, 

I am trying to get Chat GPT (OpenAI) integration to work on my PDI. The API yet is correct however, it keeps coming back with the error -

 

{
    "error": {
        "message": "you must provide a model parameter",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

 

 
This is my current configuration, I've also tried other models such as, gpt-3.5-turbo, gpt-4 and gpt-4-turbo and getting the same result. Would appreciate it if anyone's managed to get around this?

Andrew_TND_0-1710251434802.png

 

Andrew_TND_1-1710251474390.png
Andrew_TND_2-1710251505402.png

 

1 ACCEPTED SOLUTION

Hi, I did fix this only to be met with the max number of queries have been reached even though I’d not requested anything. As such I created a new account and BINGO!


Although content-type wasn’t the only issue, the model parameters noted on the documentation is out of date and needed to be “gpt-3.5-turbo” which unless you’re on GPT-4 so would need to be “gpt-4” or “gpt-4-turbo”.

 

View solution in original post

2 REPLIES 2

Jasmine Jenny M
Tera Expert

Hi Andrew, 

 

In the HTTP header, the content type should be in this format in the name: Content-Type. 

JasmineJennyM_0-1710402580308.png

 

Use 'davinci-002' as your model parameter. 

The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

 

Do change these and it should work.

 

Regards,

Jasmine

Hi, I did fix this only to be met with the max number of queries have been reached even though I’d not requested anything. As such I created a new account and BINGO!


Although content-type wasn’t the only issue, the model parameters noted on the documentation is out of date and needed to be “gpt-3.5-turbo” which unless you’re on GPT-4 so would need to be “gpt-4” or “gpt-4-turbo”.