Skip to main content

Notifications

Community site session details

Community site session details

Session Id : mlJVMApGSPzqRxw9POGsAK
Power Automate - Building Flows
Unanswered

ChatGPT - Api isn't working

Like (1) ShareShare
ReportReport
Posted on 3 Dec 2024 13:34:50 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?
 
 
  • Suggested answer
    Artur Stepniak Profile Picture
    1,526 Super User 2025 Season 1 on 04 Dec 2024 at 10:59:49
    ChatGPT - Api isn't working
    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard >

Loading started