Skip to content

Commit

Permalink
Small fixes for chat template (#5839)
Browse files Browse the repository at this point in the history
  • Loading branch information
MackinnonBuck authored Feb 4, 2025
1 parent 8e1d2ee commit ab94e0b
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/ProjectTemplates/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
package-lock.json

*/src/**/*.csproj

# launchSettings.json files are required for the templates.
!launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://json.schemastore.org/dotnetcli.host",
"symbolInfo": {
"kestrelHttpPort": {
"isHidden": true
},
"kestrelHttpsPort": {
"isHidden": true
}
},
"usageExamples": [
""
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
]
}],
"symbols":{
"symbols": {
"framework": {
"type": "parameter",
"description": "The target framework for the project.",
Expand Down Expand Up @@ -145,14 +145,14 @@
"description": "Model/deployment for embeddings. Example: text-embedding-3-small"
},
"OpenAiChatModelDefault": {
"type": "generated",
"type": "generated",
"generator": "constant",
"parameters": {
"value": "gpt-4o-mini"
}
},
"OpenAiEmbeddingModelDefault": {
"type": "generated",
"type": "generated",
"generator": "constant",
"parameters": {
"value": "text-embedding-3-small"
Expand All @@ -177,14 +177,14 @@
"replaces": "text-embedding-3-small"
},
"OllamaChatModelDefault": {
"type": "generated",
"type": "generated",
"generator": "constant",
"parameters": {
"value": "llama3.1"
}
},
"OllamaEmbeddingModelDefault": {
"type": "generated",
"type": "generated",
"generator": "constant",
"parameters": {
"value": "all-minilm"
Expand All @@ -207,6 +207,50 @@
"fallbackVariableName": "OllamaEmbeddingModelDefault"
},
"replaces": "all-minilm"
},
"kestrelHttpPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTP endpoint in launchSettings.json."
},
"kestrelHttpPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 5000,
"high": 5300
}
},
"kestrelHttpPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "kestrelHttpPort",
"fallbackVariableName": "kestrelHttpPortGenerated"
},
"replaces": "5000"
},
"kestrelHttpsPort": {
"type": "parameter",
"datatype": "integer",
"description": "Port number to use for the HTTPS endpoint in launchSettings.json."
},
"kestrelHttpsPortGenerated": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 7000,
"high": 7300
}
},
"kestrelHttpsPortReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "kestrelHttpsPort",
"fallbackVariableName": "kestrelHttpsPortGenerated"
},
"replaces": "5001"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
Exclude="$(IntermediateOutputPath)\**; $(TailwindCssOutput)" />
</ItemGroup>

<Target Name="TailwindBuild" BeforeTargets="PrepareForBuild"
AfterTargets="BuildNpmDependencies"
Inputs="@(TailwindFileInputs)" Outputs="$(TailwindCssOutput)"
Condition="'$(DesignTimeBuild)' != 'true'">
<Target Name="TailwindBuild"
BeforeTargets="PrepareForBuild"
DependsOnTargets="BuildNpmDependencies"
Inputs="@(TailwindFileInputs)"
Outputs="$(TailwindCssOutput)"
Condition="'$(DesignTimeBuild)' != 'true'">
<Exec Command="npx tailwindcss -i $(TailwindCssInput) -o $(TailwindCssOutput)" />
<Touch Files="$(TailwindCssOutput)" />
<ItemGroup>
Expand Down

0 comments on commit ab94e0b

Please sign in to comment.