Skip to content

Commit 00ebd42

Browse files
committed
updated README
1 parent e3cf0dc commit 00ebd42

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

AI.Playground.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<Folder Name="/0-HelloWorld/">
33
<Project Path="src\0-hello-world\AI.HelloWorld.AppHost\AI.HelloWorld.AppHost.csproj" Type="Classic C#" />
44
<Project Path="src\0-hello-world\AI.HelloWorld.PromptApi\AI.HelloWorld.PromptApi.csproj" Type="Classic C#" />
5+
<File Path="src\0-hello-world\README.md" />
56
</Folder>
67
<Folder Name="/build/">
78
<File Path="Directory.Build.props" />

src/0-hello-world/AI.HelloWorld.PromptApi/Program.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535

3636
app.UseHttpsRedirection();
3737

38-
var summaries = new[]
39-
{
40-
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
41-
};
42-
4338
app.MapPost("/prompt", async (string prompt, IChatClient chatClient, CancellationToken ct) =>
4439
{
4540
var resp = await chatClient.GetResponseAsync(prompt, cancellationToken: ct);

src/0-hello-world/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AI Hello World Project
22

3-
This project demonstrates a simple "Hello, World!" application using [.NET Aspire](https://learn.microsoft.com/en-us/dotnet/aspire/get-started/aspire-overview).
3+
This project demonstrates a simple "Hello, World!" application using [.NET Aspire](https://learn.microsoft.com/en-us/dotnet/aspire/get-started/aspire-overview) and ASP.NET Core.
44

55
## Running the Project
66

@@ -12,7 +12,7 @@ dotnet run --project AI.HelloWorld.AppHost/AI.HelloWorld.AppHost.csproj
1212

1313
### Model
1414

15-
By default this project will download and run the [`llama3.2:3b`](https://ollama.com/library/llama3.2:3b) model, which can run just fine even on a machine without any GPU support. You can configure this inside the `AI.HelloWorld.AppHost.Program.cs` file:
15+
By default, this project will download and run the [`llama3.2:3b`](https://ollama.com/library/llama3.2:3b) model, which can run just fine even on a machine without any GPU support. You can configure this inside the `AI.HelloWorld.AppHost.Program.cs` file:
1616

1717
```csharp
1818
var ollama =
@@ -25,4 +25,14 @@ var ollama =
2525
*/
2626
var chat = ollama
2727
.AddModel("chat", "llama3.2:3b"); // 3b parameter model
28-
```
28+
```
29+
30+
## Accessing the Swagger Endpoint
31+
32+
Once the application is running, you can access the Swagger UI to explore the API endpoints. By default, the Swagger UI is available at:
33+
34+
```
35+
http://localhost:5055/swagger/index.html
36+
```
37+
38+
This interface allows you to interact with the Prompt API, view available endpoints, and send requests directly from the browser.

0 commit comments

Comments
 (0)