question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sample Kernel Http Server /api/skills/funskill/invoke/joke - BadRequest logprobs, best_of and echo parameters are not available on gpt-35-turbo model.

See original GitHub issue

Describe the bug Considering the AzureOpenAI account and the gpt-35-turbo model. When executing the /api/skills/funskill/invoke/joke the kernel is returning the following message.

InvalidRequest: The request is not valid, HTTP status: 400 - Detail: logprobs, best_of and echo parameters are not available on gpt-35-turbo model. Please remove the parameter and try again. For more details, see https://go.microsoft.com/fwlink/?linkid=2227346.
Status: 400 (BadRequest)
ErrorCode: BadRequest

Content:
{"error":{"code":"BadRequest","message":"logprobs, best_of and echo parameters are not available on gpt-35-turbo model. Please remove the parameter and try again. For more details, see https://go.microsoft.com/fwlink/?linkid=2227346."}}

Headers:
apim-request-id: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
x-ms-region: REDACTED
Date: Fri, 21 Apr 2023 03:15:59 GMT
Content-Length: 236
Content-Type: application/json

I saw there was a similar problem in the past when using the GPT.

To Reproduce

curl 'http://localhost:7071/api/skills/funskill/invoke/joke' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,pt;q=0.7' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: text/plain;charset=UTF-8' \
  -H 'Origin: http://localhost:3000' \
  -H 'Referer: http://localhost:3000/' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-site' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.48' \
  -H 'sec-ch-ua: "Chromium";v="112", "Microsoft Edge";v="112", "Not:A-Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  -H 'x-ms-sk-completion-backend: 0' \
  -H 'x-ms-sk-completion-endpoint: XXXXXXXX' \
  -H 'x-ms-sk-completion-key: XXXXXXXXX' \
  -H 'x-ms-sk-completion-model: completion-model' \
  --data-raw '{"value":"clippy","inputs":[{"key":"style","value":"Bill & Ted"}]}' \
  --compressed

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • IDE: Visual Studio 2022
  • NuGet Package Version
   <TargetFramework>net6.0</TargetFramework>
   <AzureFunctionsVersion>v4</AzureFunctionsVersion>
   <OutputType>Exe</OutputType>
   <LangVersion>10</LangVersion>
   <Nullable>enable</Nullable>
   <ImplicitUsings>disable</ImplicitUsings>
   <IsPackable>false</IsPackable>
 </PropertyGroup>

 <ItemGroup>
   <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
   <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.9.0" OutputItemType="Analyzer" />
   <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.13.0" />
   <PackageReference Include="Microsoft.Graph" Version="4.54.0" />
 </ItemGroup>

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
craigomaticcommented, Apr 24, 2023

Lets close this for now, we will take care of all the samples in a future effort. Thanks for trying SK 😃

1reaction
craigomaticcommented, Apr 21, 2023

Try with AddAzureChatCompletionService

Read more comments on GitHub >

github_iconTop Results From Across the Web

logprobs, best_of and echo parameters are not available ...
Describe the bug Getting 400 HTTP status code response from AzureOpenAI when serviceId and deploymentOrModelId are set to "gpt-35-turbo".
Read more >
Azure open ai erro r logprobs, best_of and echo ...
Azure open ai erro r logprobs, best_of and echo parameters are not available on gpt-35-turbo model. Please remove the parameter and try again....
Read more >
Web server implementations in ASP.NET Core
Discover the web servers Kestrel and HTTP.sys for ASP.NET Core. Learn how to choose a server and when to use a reverse proxy...
Read more >
How To Create a Web Server in Node.js with the HTTP ...
js is a popular choice for writing back-end code. In this tutorial, you will learn how to build web servers using the http...
Read more >
A Simple Python Web Server to Echo Back HTTP Request ...
Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More · Simple HTTP Server in Python · Eurythmics, Annie ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found