Skip to main content

Notifications

Community site session details

Community site session details

Session Id : SLNiXrTNTDYlFMyzEOhKks
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,521 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started
Loading complete