Home General

Azure OpenAI's API unable to use at all for a while.

edited April 15 in General

I'm sure my Azure OpenAI Service is able to use, but I just can't use in LINQPad.

Host runtime version: 8.0.15
Default query runtime version: 9.0.4
Default query reference assembly version: 9.0.4
Roslyn Version: 4.13.0-3.25120.11
FSharp.Compiler.Service version: 43.8.101.0
NuGet client version: 6.7.1.1
Windows DevDrive Status: Unavailable
Results rendering engine: Edge Chromium Engine 135.0.3179.73 (WebView2)

Comments

  • I attempted to set up the "Custom" provider, but it still doesn't work.

    image

    I'm confident that the following curl command should run successfully.

  • edited April 15

    I think it's a bug in LINQPad. I traced the request payload from LINQPad and the response content from Azure OpenAI Service. I realized that the first response in Stream mode will produce an "EMPTY" choices and LINQPad think that's an error.

    Here is the very first response chunk of the response from AOAI.

    {
        "choices": [],
        "created": 0,
        "id": "",
        "model": "",
        "object": "",
        "prompt_filter_results": [
            {
                "prompt_index": 0,
                "content_filter_results": {
                    "hate": {
                        "filtered": false,
                        "severity": "safe"
                    },
                    "jailbreak": {
                        "filtered": false,
                        "detected": false
                    },
                    "self_harm": {
                        "filtered": false,
                        "severity": "safe"
                    },
                    "sexual": {
                        "filtered": false,
                        "severity": "safe"
                    },
                    "violence": {
                        "filtered": false,
                        "severity": "safe"
                    }
                }
            }
        ]
    }
    

    There is a related issue here: https://github.com/Azure/azure-sdk-for-go/issues/21086

    Also here: https://github.com/streamlit/streamlit/issues/8084

    I think the best way to solve this issue is by ignoring empty choices chunk.

Sign In or Register to comment.