You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at this example, the code is perfectly fine, just it's not modern ASP.NET like.
[FunctionName(nameof(WhoIs))]publicstaticstringWhoIs([HttpTrigger(AuthorizationLevel.Function, Route ="whois/{name}")]HttpRequestreq,[TextCompletion("Who is {name}?", Model ="gpt-35-turbo")]TextCompletionResponseresponse){return response.Content;}
Suggest changing this in all places to be this instead:
[FunctionName(nameof(WhoIs))]publicstatic IActionResult WhoIsFunction([HttpTrigger(AuthorizationLevel.Function, Route ="whois/{name}")]HttpRequestreq,[TextCompletion("Who is {name}?")]TextCompletionResponseresponse){returnnew OkObjectResult(response.Content);}
The text was updated successfully, but these errors were encountered:
…er (#25)
Reorganised samples into folders for each feature and supported languages underneath
image
Resolved CG vulnerabilities:
Upgrade Microsoft.AspNetCore.Http from 2.1.0 to 2.1.22 to fix the vulnerability.
Removed Microsoft.AspNetCore.Mvc.Core reference from isolated projects
Removed STJ reference from in proc project
Nuget Package Artifact build - PR trigger removed, path trigger updated.
Nuget packages updated in samples C# projects.
Some text updates in README files (more README organisation separately)
Updated host json to include logging for extension WebJobs
Also addressing ASP.NET WhoIs example should use IActionResult #21
Renamed Startup file for Kusto project, removed extra startup file from WebJobs extension
Updated packages for extension projects
Fixed bug in totalTokens, count was not being set
Bumped the version in changelog to 0.9.0
Looking at this example, the code is perfectly fine, just it's not modern ASP.NET like.
Suggest changing this in all places to be this instead:
The text was updated successfully, but these errors were encountered: