web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ChatGPT - Api isn't wo...
Power Automate
Unanswered

ChatGPT - Api isn't working

(1) ShareShare
ReportReport
Posted on by 2
Hello,
 
my http-request to chatgpt always resuluts in this error:
 
Encountered internal server error. The tracking Id is 'c8b699f3-0424-4c5e-ba2d-8d328ab42e40'.
 
Thats the code I use, generated via playground.
 
curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
  "model": "gpt-3.5-turbo",
  "messages": [
    {
      "role": "system",
      "content": [
        {
          "type": "text",
          "text": "Wie gehts?"
        }
      ]
    }
  ],
  "response_format": {
    "type": "text"
  },
  "temperature": 1,
  "max_tokens": 2048,
  "top_p": 1,
  "frequency_penalty": 0,
  "presence_penalty": 0
}'
 
 
 
Can someone help me?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Artur Stepniak Profile Picture
    1,534 Super User 2025 Season 2 on at
    Hello,
     
    can you try this one? You're missing a user role message - it's used to generate a response. System message that you've used is for instructing the model, like giving it a role or altering the output.
     
    curl -x 127.0.0.1:33210 https://api.openai.com/v1/chat/completions^
      -H "Content-Type: application/json" ^
      -H "Authorization: Bearer %OPENAI_API_KEY%" ^
      -d '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Say this is a test!"}], "temperature": 0.7 }'

    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.

    Best regards,

    Artur Stepniak

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard