Skip to content

Commit

Permalink
Update Swagger server URL to use HTTP instead of HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
MSFTJim committed Apr 23, 2024
1 parent bffd7bd commit b1dfb6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
9 changes: 4 additions & 5 deletions TSA-API/tsaWaitTime/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
swagger.Servers = new List<OpenApiServer>
{
// new OpenApiServer { Url = $"{httpReq.Scheme}://{httpReq.Host.Value}" }
new OpenApiServer { Url = $"https://localhost:5088" }
new OpenApiServer { Url = $"http://localhost:5088" }

};
});
Expand All @@ -28,9 +28,7 @@


app.MapGet("/TSAWait/{airportCode}", (string airportCode) =>
{
app.Logger.LogInformation("TSAWait endpoint called with airportCode: {airportCode}", airportCode);

{
Random random = new();
int waitTime = 0;

Expand All @@ -52,7 +50,8 @@

double TimeOfDayFactor = CalcTimeOfDayFactor();
waitTime = (int)(waitTime * TimeOfDayFactor);


app.Logger.LogInformation("TSAWait endpoint called with airportCode: {airportCode} and wait time: {waitTime}", airportCode, waitTime);
return new { WaitTime = waitTime };
//return TypedResults.Ok(new { WaitTime = waitTime });

Expand Down
3 changes: 0 additions & 3 deletions webapi/Controllers/ChatController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ public void OnFunctionInvoked(FunctionInvokedContext context) =>
Console.WriteLine($"{nameof(FirstFunctionFilter)}.{nameof(OnFunctionInvoked)} - {context.Function.Name}.{context.Function.Description}");
#pragma warning restore SKEXP0004 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
}

}

/// <summary>
Expand Down Expand Up @@ -507,6 +506,4 @@ public async Task OpenAIAuthenticateRequestAsync(HttpRequestMessage request, str
{
await this.AuthenticateRequestAsync(request, cancellationToken);
}


}
12 changes: 6 additions & 6 deletions webapi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@
"Prompts": {
"CompletionTokenLimit": 4096,
"ResponseTokenLimit": 1024,
"SystemDescription": "This is a chat between an intelligent AI bot named Copilot and one or more participants. SK stands for Semantic Kernel, the AI platform used to build the bot. The AI was trained on data through 2021 and is not aware of events that have occurred since then. It also has no ability to access data on the Internet, so it should not claim that it can or say that it will go and look things up. Try to be concise with your answers, though it is not required. Knowledge cutoff: {{$knowledgeCutoff}} / Current date: {{TimePlugin.Now}}.",
"TSASystemDescription": "This is a chat between an intelligent AI bot named Ace and one or more participants. Ace is an intelligent chatbot designed to assist with travel information for the New York/New Jersey Port Authority. It leverages advanced AI technology to provide real-time updates, answer queries, and offer guidance to travelers navigating the NY/NJ transit system. If the question is not about the NY/NJ Transit, politely decline to answer it. Try to be concise with your answers, though it is not required. Knowledge cutoff: {{$knowledgeCutoff}} / Current date: {{TimePlugin.Now}}.",
"SystemResponse": "Either return [silence] or provide a response to the last message. ONLY PROVIDE A RESPONSE IF the last message WAS ADDRESSED TO THE 'BOT' OR 'COPILOT'. If it appears the last message was not for you, send [silence] as the bot response.",
"TSASystemResponse": "Either return [silence] or provide a response to the last message. ONLY PROVIDE A RESPONSE IF the last message WAS ADDRESSED TO THE 'ACE', 'BOT' OR 'COPILOT'. If it appears the last message was not for you, send [silence] as the bot response.",
"InitialBotMessage": "Hello, thank you for democratizing AI's productivity benefits with open source! How can I help you today?",
"TSAInitialBotMessage": "Hello! I'm **Ace**, your digital assistant for all things related to the New York/New Jersey Port Authority. I'm here to provide you with real-time updates, answer your queries, and guide you through the NY/NJ transit system. Whether you need information on bus and train schedules, delays, cancellations, or platform changes, I've got you covered. How can I assist you today?",
"ORIGSystemDescription": "This is a chat between an intelligent AI bot named Copilot and one or more participants. SK stands for Semantic Kernel, the AI platform used to build the bot. The AI was trained on data through 2021 and is not aware of events that have occurred since then. It also has no ability to access data on the Internet, so it should not claim that it can or say that it will go and look things up. Try to be concise with your answers, though it is not required. Knowledge cutoff: {{$knowledgeCutoff}} / Current date: {{TimePlugin.Now}}.",
"SystemDescription": "This is a chat between an intelligent AI bot named Ace and one or more participants. Ace is an intelligent chatbot designed to assist with travel information for the New York/New Jersey Port Authority. It leverages advanced AI technology to provide real-time updates, answer queries, and offer guidance to travelers navigating the NY/NJ transit system. If the question is not about the NY/NJ Transit, politely decline to answer it. Try to be concise with your answers, though it is not required. Knowledge cutoff: {{$knowledgeCutoff}} / Current date: {{TimePlugin.Now}}.",
"ORIGSystemResponse": "Either return [silence] or provide a response to the last message. ONLY PROVIDE A RESPONSE IF the last message WAS ADDRESSED TO THE 'BOT' OR 'COPILOT'. If it appears the last message was not for you, send [silence] as the bot response.",
"SystemResponse": "Either return [silence] or provide a response to the last message. ONLY PROVIDE A RESPONSE IF the last message WAS ADDRESSED TO THE 'ACE', 'BOT' OR 'COPILOT'. If it appears the last message was not for you, send [silence] as the bot response.",
"ORIGInitialBotMessage": "Hello, thank you for democratizing AI's productivity benefits with open source! How can I help you today?",
"InitialBotMessage": "Hello! I'm **Ace**, your digital assistant for all things related to the New York/New Jersey Port Authority. I'm here to provide you with real-time updates, answer your queries, and guide you through the NY/NJ transit system. Whether you need information on bus and train schedules, delays, cancellations, or platform changes, I've got you covered. How can I assist you today?",
"KnowledgeCutoffDate": "Saturday, January 1, 2022",
"SystemAudience": "Below is a chat history between an intelligent AI bot named Copilot with one or more participants.",
"SystemAudienceContinuation": "Using the provided chat history, generate a list of names of the participants of this chat. Do not include 'bot' or 'copilot'.The output should be a single rewritten sentence containing only a comma separated list of names. DO NOT offer additional commentary. DO NOT FABRICATE INFORMATION.\nParticipants:",
Expand Down

0 comments on commit b1dfb6d

Please sign in to comment.