[GH-ISSUE #4364] [bug]: For some reason OpenAI calls do not work #1593

Open
opened 2026-03-16 20:59:37 +03:00 by kerem · 4 comments
Owner

Originally created by @altrusl on GitHub (Sep 20, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4364

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

It gets this error

{"error":{"code":"404","message": "Resource not found"}}

when running this from Hoppscotch both webapp and tauri version

curl --request POST \
  --url 'https://ai-myllm.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-15-preview' \
  --header 'Content-Type: application/json' \
  --header 'api-key: xxx' \
  --data '{
  "messages": [
    {
      "role": "system",
      "content": [
        {
          "type": "text",
          "text": "You are an AI assistant that helps people find information."
        }
      ]
    },
    {
      "role": "user",
      "content": [{
          "type": "text",
          "text": "tell me about you."
        }]
    }
  ],
  "temperature": 0.7,
  "top_p": 0.95,
  "max_tokens": 100
}'

Running it as CURL works fine

The same request from Bruno works fine

Steps to reproduce

  1. import the request
  2. set your config parameters
  3. run it

Environment

Production

Version

Local

Originally created by @altrusl on GitHub (Sep 20, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4364 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior It gets this error `{"error":{"code":"404","message": "Resource not found"}}` when running this from Hoppscotch both webapp and tauri version ``` curl --request POST \ --url 'https://ai-myllm.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-15-preview' \ --header 'Content-Type: application/json' \ --header 'api-key: xxx' \ --data '{ "messages": [ { "role": "system", "content": [ { "type": "text", "text": "You are an AI assistant that helps people find information." } ] }, { "role": "user", "content": [{ "type": "text", "text": "tell me about you." }] } ], "temperature": 0.7, "top_p": 0.95, "max_tokens": 100 }' ``` Running it as CURL works fine The same request from Bruno works fine ### Steps to reproduce 1. import the request 2. set your config parameters 3. run it ### Environment Production ### Version Local
Author
Owner

@punit1108 commented on GitHub (Sep 20, 2024):

you mean openai?

<!-- gh-comment-id:2363304943 --> @punit1108 commented on GitHub (Sep 20, 2024): you mean openai?
Author
Owner

@altrusl commented on GitHub (Sep 20, 2024):

you mean openai?

Yes, sorry

<!-- gh-comment-id:2363309150 --> @altrusl commented on GitHub (Sep 20, 2024): > you mean openai? Yes, sorry
Author
Owner

@047pegasus commented on GitHub (Sep 25, 2024):

Hey can I take this up ?

<!-- gh-comment-id:2374186652 --> @047pegasus commented on GitHub (Sep 25, 2024): Hey can I take this up ?
Author
Owner

@marcellourbani commented on GitHub (Oct 8, 2024):

that URL is not public, doesn't work in curl either

<!-- gh-comment-id:2400975560 --> @marcellourbani commented on GitHub (Oct 8, 2024): that URL is not public, doesn't work in curl either
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1593
No description provided.