- 
                Notifications
    You must be signed in to change notification settings 
- Fork 715
Add GitHub Models integration #10170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 4 commits
      Commits
    
    
            Show all changes
          
          
            20 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      84a200d
              
                Add GitHub Models integration
              
              
                sebastienros 5ff8775
              
                Fix parameters and doc
              
              
                sebastienros df30820
              
                Add package logo
              
              
                sebastienros b483338
              
                Support GITHUB_TOKEN env
              
              
                sebastienros c3f086f
              
                Fix test
              
              
                sebastienros 48361bd
              
                Merge branch 'main' into sebros/ghmodels
              
              
                mitchdenny 0e25124
              
                Merge branch 'main' into sebros/ghmodels
              
              
                sebastienros 6f21fa5
              
                Rename to GithubModel
              
              
                sebastienros 52c2814
              
                Merge branch 'sebros/ghmodels' of https://github.com/dotnet/aspire in…
              
              
                sebastienros 9f3a02f
              
                Remove iisexpress in launch
              
              
                sebastienros a602f5b
              
                Update playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.AppHost/G…
              
              
                sebastienros a169ba2
              
                Merge remote-tracking branch 'origin/main' into sebros/ghmodels
              
              
                sebastienros ac0bbb3
              
                Define running state on github models
              
              
                sebastienros 82f49de
              
                Add organization
              
              
                sebastienros 2713765
              
                Add tests
              
              
                sebastienros 0dc7f2a
              
                Add health checks
              
              
                sebastienros c20d894
              
                Add manifest files
              
              
                sebastienros dc50bc6
              
                Make health checks opt-in
              
              
                sebastienros 60a70f3
              
                Feedback
              
              
                sebastienros 105b05c
              
                Fix test
              
              
                sebastienros File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            22 changes: 22 additions & 0 deletions
          
          22 
        
  ...und/GitHubModelsEndToEnd/GitHubModelsEndToEnd.AppHost/GitHubModelsEndToEnd.AppHost.csproj
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|  | ||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>$(DefaultTargetFramework)</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <IsAspireHost>true</IsAspireHost> | ||
| <UserSecretsId>b8e8b8c7-4a45-4b2e-8c7d-9e8f7a6b5c4d</UserSecretsId> | ||
| </PropertyGroup> | ||
|  | ||
| <ItemGroup> | ||
| <Compile Include="..\..\KnownResourceNames.cs" Link="KnownResourceNames.cs" /> | ||
| </ItemGroup> | ||
|  | ||
| <ItemGroup> | ||
| <AspireProjectOrPackageReference Include="Aspire.Hosting.AppHost" /> | ||
| <ProjectReference Include="..\..\..\src\Aspire.Hosting.GitHub.Models\Aspire.Hosting.GitHub.Models.csproj" IsAspireProjectResource="false" /> | ||
| <ProjectReference Include="..\GitHubModelsEndToEnd.WebStory\GitHubModelsEndToEnd.WebStory.csproj" /> | ||
| </ItemGroup> | ||
|  | ||
| </Project> | ||
        
          
          
            26 changes: 26 additions & 0 deletions
          
          26 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.AppHost/Program.cs
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|  | ||
| var builder = DistributedApplication.CreateBuilder(args); | ||
|  | ||
| var chat = builder.AddGitHubModel("chat", "openai/gpt-4o-mini"); | ||
|         
                  sebastienros marked this conversation as resolved.
              Show resolved
            Hide resolved | ||
|  | ||
| // To set the GitHub Models API key define the value for the following parameter in User Secrets. | ||
| // Alternatively, you can set the environment variable GITHUB_TOKEN and comment the line below. | ||
| chat.WithApiKey(builder.AddParameter("github-api-key", secret: true)); | ||
|  | ||
| builder.AddProject<Projects.GitHubModelsEndToEnd_WebStory>("webstory") | ||
| .WithExternalHttpEndpoints() | ||
| .WithReference(chat); | ||
|  | ||
| #if !SKIP_DASHBOARD_REFERENCE | ||
| // This project is only added in playground projects to support development/debugging | ||
| // of the dashboard. It is not required in end developer code. Comment out this code | ||
| // or build with `/p:SkipDashboardReference=true`, to test end developer | ||
| // dashboard launch experience, Refer to Directory.Build.props for the path to | ||
| // the dashboard binary (defaults to the Aspire.Dashboard bin output in the | ||
| // artifacts dir). | ||
| builder.AddProject<Projects.Aspire_Dashboard>(KnownResourceNames.AspireDashboard); | ||
| #endif | ||
|  | ||
| builder.Build().Run(); | ||
        
          
          
            40 changes: 40 additions & 0 deletions
          
          40 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.AppHost/Properties/launchSettings.json
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "$schema": "http://json.schemastore.org/launchsettings.json", | ||
| "profiles": { | ||
| "https": { | ||
| "commandName": "Project", | ||
| "dotnetRunMessages": true, | ||
| "launchBrowser": true, | ||
| "applicationUrl": "https://localhost:15215;http://localhost:15216", | ||
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development", | ||
| "DOTNET_ENVIRONMENT": "Development", | ||
| "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:16195", | ||
| "ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:17037" | ||
| } | ||
| }, | ||
| "http": { | ||
| "commandName": "Project", | ||
| "dotnetRunMessages": true, | ||
| "launchBrowser": true, | ||
| "applicationUrl": "http://localhost:15216", | ||
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development", | ||
| "DOTNET_ENVIRONMENT": "Development", | ||
| "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:16195", | ||
| "ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:17038", | ||
| "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true" | ||
| } | ||
| }, | ||
| "generate-manifest": { | ||
| "commandName": "Project", | ||
| "launchBrowser": true, | ||
| "dotnetRunMessages": true, | ||
| "commandLineArgs": "--publisher manifest --output-path aspire-manifest.json", | ||
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development", | ||
| "DOTNET_ENVIRONMENT": "Development" | ||
| } | ||
| } | ||
| } | ||
| } | 
        
          
          
            22 changes: 22 additions & 0 deletions
          
          22 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/App.razor
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|  | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <base href="/" /> | ||
| <link rel="stylesheet" href="app.css" /> | ||
| <link rel="stylesheet" href="GitHubModelsEndToEnd.WebStory.styles.css" /> | ||
| <HeadOutlet @rendermode="@renderMode" /> | ||
| </head> | ||
|  | ||
| <body> | ||
| <Routes @rendermode="@renderMode" /> | ||
| <script src="_framework/blazor.web.js"></script> | ||
| </body> | ||
|  | ||
| </html> | ||
|  | ||
| @code { | ||
| IComponentRenderMode renderMode = new InteractiveServerRenderMode(prerender: false); | ||
| } | 
        
          
          
            9 changes: 9 additions & 0 deletions
          
          9 
        
  ...und/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/Layout/MainLayout.razor
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| @inherits LayoutComponentBase | ||
|  | ||
| @Body | ||
|  | ||
| <div id="blazor-error-ui"> | ||
| An unhandled error has occurred. | ||
| <a href="" class="reload">Reload</a> | ||
| <a class="dismiss">🗙</a> | ||
| </div> | 
        
          
          
            18 changes: 18 additions & 0 deletions
          
          18 
        
  ...GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/Layout/MainLayout.razor.css
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #blazor-error-ui { | ||
| background: lightyellow; | ||
| bottom: 0; | ||
| box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); | ||
| display: none; | ||
| left: 0; | ||
| padding: 0.6rem 1.25rem 0.7rem 1.25rem; | ||
| position: fixed; | ||
| width: 100%; | ||
| z-index: 1000; | ||
| } | ||
|  | ||
| #blazor-error-ui .dismiss { | ||
| cursor: pointer; | ||
| position: absolute; | ||
| right: 0.75rem; | ||
| top: 0.5rem; | ||
| } | 
        
          
          
            36 changes: 36 additions & 0 deletions
          
          36 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/Pages/Error.razor
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @page "/Error" | ||
| @using System.Diagnostics | ||
|  | ||
| <PageTitle>Error</PageTitle> | ||
|  | ||
| <h1 class="text-danger">Error.</h1> | ||
| <h2 class="text-danger">An error occurred while processing your request.</h2> | ||
|  | ||
| @if (ShowRequestId) | ||
| { | ||
| <p> | ||
| <strong>Request ID:</strong> <code>@RequestId</code> | ||
| </p> | ||
| } | ||
|  | ||
| <h3>Development Mode</h3> | ||
| <p> | ||
| Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred. | ||
| </p> | ||
| <p> | ||
| <strong>The Development environment shouldn't be enabled for deployed applications.</strong> | ||
| It can result in displaying sensitive information from exceptions to end users. | ||
| For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong> | ||
| and restarting the app. | ||
| </p> | ||
|  | ||
| @code{ | ||
| [CascadingParameter] | ||
| private HttpContext? HttpContext { get; set; } | ||
|  | ||
| private string? RequestId { get; set; } | ||
| private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); | ||
|  | ||
| protected override void OnInitialized() => | ||
| RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; | ||
| } | 
        
          
          
            40 changes: 40 additions & 0 deletions
          
          40 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/Pages/Home.razor
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| @page "/" | ||
| @using Microsoft.Extensions.AI | ||
| @inject IChatClient chatClient | ||
| @inject ILogger<Home> logger | ||
|  | ||
| <div class="storybox" style="margin: 25%"> | ||
| @foreach (var message in chatMessages.Where(m => m.Role == ChatRole.Assistant)) | ||
| { | ||
| <p style="font-size: 3em;">@message.Text</p> | ||
| } | ||
|  | ||
| <button @onclick="GenerateNextParagraph" autofocus>Generate</button> | ||
|  | ||
| <p style="margin-top: 20px; font-size: 1em; color: #666;"> | ||
| Powered by GitHub Models | ||
| </p> | ||
| </div> | ||
|  | ||
| @code { | ||
| private List<ChatMessage> chatMessages = new List<ChatMessage> | ||
| { | ||
| new(ChatRole.System, "Pick a random topic and write a sentence of a fictional story about it.") | ||
| }; | ||
|  | ||
| private async Task GenerateNextParagraph() | ||
| { | ||
| if (chatMessages.Count > 1) | ||
| { | ||
| chatMessages.Add(new ChatMessage(ChatRole.User, "Write the next sentence in the story.")); | ||
| } | ||
|  | ||
| var response = await chatClient.GetResponseAsync(chatMessages); | ||
| chatMessages.AddMessages(response); | ||
| } | ||
|  | ||
| protected override async Task OnInitializedAsync() | ||
| { | ||
| await GenerateNextParagraph(); | ||
| } | ||
| } | 
        
          
          
            6 changes: 6 additions & 0 deletions
          
          6 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/Routes.razor
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <Router AppAssembly="typeof(Program).Assembly"> | ||
| <Found Context="routeData"> | ||
| <RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" /> | ||
| <FocusOnNavigate RouteData="routeData" Selector="h1" /> | ||
| </Found> | ||
| </Router> | 
        
          
          
            10 changes: 10 additions & 0 deletions
          
          10 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Components/_Imports.razor
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| @using System.Net.Http | ||
| @using System.Net.Http.Json | ||
| @using Microsoft.AspNetCore.Components.Forms | ||
| @using Microsoft.AspNetCore.Components.Routing | ||
| @using Microsoft.AspNetCore.Components.Web | ||
| @using static Microsoft.AspNetCore.Components.Web.RenderMode | ||
| @using Microsoft.AspNetCore.Components.Web.Virtualization | ||
| @using Microsoft.JSInterop | ||
| @using GitHubModelsEndToEnd.WebStory | ||
| @using GitHubModelsEndToEnd.WebStory.Components | 
        
          
          
            14 changes: 14 additions & 0 deletions
          
          14 
        
  ...d/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/GitHubModelsEndToEnd.WebStory.csproj
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|  | ||
| <PropertyGroup> | ||
| <TargetFramework>$(DefaultTargetFramework)</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| </PropertyGroup> | ||
|  | ||
| <ItemGroup> | ||
| <AspireProjectOrPackageReference Include="Aspire.Azure.AI.Inference" /> | ||
| <ProjectReference Include="..\..\Playground.ServiceDefaults\Playground.ServiceDefaults.csproj" /> | ||
| </ItemGroup> | ||
|  | ||
| </Project> | 
        
          
          
            35 changes: 35 additions & 0 deletions
          
          35 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Program.cs
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|  | ||
| using GitHubModelsEndToEnd.WebStory.Components; | ||
|  | ||
| var builder = WebApplication.CreateBuilder(args); | ||
|  | ||
| builder.AddServiceDefaults(); | ||
|  | ||
| builder.AddAzureChatCompletionsClient("chat") | ||
| .AddChatClient(); | ||
|  | ||
| // Add services to the container. | ||
| builder.Services.AddRazorComponents() | ||
| .AddInteractiveServerComponents(); | ||
|  | ||
| var app = builder.Build(); | ||
|  | ||
| // Configure the HTTP request pipeline. | ||
| if (!app.Environment.IsDevelopment()) | ||
| { | ||
| app.UseExceptionHandler("/Error", createScopeForErrors: true); | ||
| // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. | ||
| app.UseHsts(); | ||
| } | ||
|  | ||
| app.UseHttpsRedirection(); | ||
|  | ||
| app.UseStaticFiles(); | ||
| app.UseAntiforgery(); | ||
|  | ||
| app.MapRazorComponents<App>() | ||
| .AddInteractiveServerRenderMode(); | ||
|  | ||
| app.Run(); | 
        
          
          
            38 changes: 38 additions & 0 deletions
          
          38 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/Properties/launchSettings.json
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "$schema": "http://json.schemastore.org/launchsettings.json", | ||
| "iisSettings": { | ||
| "windowsAuthentication": false, | ||
| "anonymousAuthentication": true, | ||
| "iisExpress": { | ||
| "applicationUrl": "http://localhost:54245", | ||
| "sslPort": 44363 | ||
| } | ||
| }, | ||
| "profiles": { | ||
| "http": { | ||
| "commandName": "Project", | ||
| "dotnetRunMessages": true, | ||
| "launchBrowser": true, | ||
| "applicationUrl": "http://localhost:5293", | ||
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development" | ||
| } | ||
| }, | ||
| "https": { | ||
| "commandName": "Project", | ||
| "dotnetRunMessages": true, | ||
| "launchBrowser": true, | ||
| "applicationUrl": "https://localhost:7025;http://localhost:5293", | ||
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development" | ||
| } | ||
| }, | ||
| "IIS Express": { | ||
|         
                  sebastienros marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
| "commandName": "IISExpress", | ||
| "launchBrowser": true, | ||
| "environmentVariables": { | ||
| "ASPNETCORE_ENVIRONMENT": "Development" | ||
| } | ||
| } | ||
| } | ||
| } | ||
        
          
          
            8 changes: 8 additions & 0 deletions
          
          8 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/appsettings.Development.json
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "Logging": { | ||
| "LogLevel": { | ||
| "Default": "Information", | ||
| "Microsoft.AspNetCore": "Warning" | ||
| } | ||
| } | ||
| } | 
        
          
          
            9 changes: 9 additions & 0 deletions
          
          9 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/appsettings.json
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "Logging": { | ||
| "LogLevel": { | ||
| "Default": "Information", | ||
| "Microsoft.AspNetCore": "Warning" | ||
| } | ||
| }, | ||
| "AllowedHosts": "*" | ||
| } | 
        
          
          
            3 changes: 3 additions & 0 deletions
          
          3 
        
  playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.WebStory/wwwroot/app.css
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| p { | ||
| font-size: 6em; | ||
| } | 
        
          
          
            16 changes: 16 additions & 0 deletions
          
          16 
        
  src/Aspire.Hosting.GitHub.Models/Aspire.Hosting.GitHub.Models.csproj
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|  | ||
| <PropertyGroup> | ||
| <TargetFramework>$(DefaultTargetFramework)</TargetFramework> | ||
| <IsPackable>true</IsPackable> | ||
| <PackageTags>aspire integration hosting github models ai</PackageTags> | ||
| <Description>GitHub Models resource types for .NET Aspire.</Description> | ||
| <PackageIconFullPath>$(SharedDir)GitHub_256x.png</PackageIconFullPath> | ||
|         
                  sebastienros marked this conversation as resolved.
              Show resolved
            Hide resolved | ||
| <SuppressFinalPackageVersion>true</SuppressFinalPackageVersion> | ||
| </PropertyGroup> | ||
|  | ||
| <ItemGroup> | ||
| <ProjectReference Include="..\Aspire.Hosting\Aspire.Hosting.csproj" /> | ||
| </ItemGroup> | ||
|  | ||
| </Project> | ||
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.