Skip to content

Commit

Permalink
Make route anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbolanos committed Jul 13, 2023
1 parent 500d44b commit 2d19b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions semantic-kernel/ai-orchestration/chatgpt-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ We can now add our native functions to the Azure Function project.
3. Replace the `Run` function with the following code:
```csharp
[Function("Add")]
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequestData req)
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req)
{
bool result1 = double.TryParse(req.Query["number1"], out double number1);
bool result2 = double.TryParse(req.Query["number2"], out double number2);
Expand Down Expand Up @@ -264,7 +264,7 @@ To create an Azure Function that serves up this manifest, follow these steps:
3. Replace the `Run` method with the following code:
```csharp
[Function("GetAiPluginJson")]
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = ".well-known/ai-plugin.json")] HttpRequestData req)
public HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = ".well-known/ai-plugin.json")] HttpRequestData req)
{
var currentDomain = $"{req.Url.Scheme}://{req.Url.Host}:{req.Url.Port}";
Expand Down

0 comments on commit 2d19b1d

Please sign in to comment.