ServiceNow and OpenAI integration


I am trying to get Chat GPT (OpenAI) integration to work on my PDI. The API credentials are 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

I’ve attached my current configuration and also tried other models such as, gpt-3.5-turbo, gpt-4 and gpt-4-turbo and getting the same result.

Thanks in advance!.

Apologies the end point is api . / v1 / completions

can you print out a debug output of what you’re actually sending?

one guess would be that you’re sending all that data with the header, but it’s supposed to be part of the post object :thinking:

look here:

1 Like