Skip to content

Commit 908f685

Browse files
committed
Run pre-commit hooks
1 parent dc44d69 commit 908f685

File tree

13 files changed

+30
-42
lines changed

13 files changed

+30
-42
lines changed

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
"command": "azure-dev.commands.getDotEnvFilePath"
3333
}
3434
]
35-
}
35+
}

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ We prefer all communications to be in English.
3838

3939
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/msrc/cvd).
4040

41-
<!-- END MICROSOFT SECURITY.MD BLOCK -->
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

app/frontend/src/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"retrieveNumber":
133133
"Sets the number of search results to retrieve from Azure AI search. More results may increase the likelihood of finding the correct answer, but may lead to the model getting 'lost in the middle'.",
134134
"includeCategory":
135-
"Specifies a category to include in the search results. There are no categories used in the default data set.",
135+
"Specifies a category to include in the search results. There are no categories used in the default data set.",
136136
"excludeCategory":
137137
"Specifies a category to exclude from the search results. There are no categories used in the default data set.",
138138
"useSemanticReranker":

app/frontend/src/locales/es/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"retrieveNumber":
134134
"Establece el número de resultados de búsqueda para recuperar de Azure AI search. Más resultados pueden aumentar la probabilidad de encontrar la respuesta correcta, pero pueden provocar que el modelo se 'pierda en el medio'.",
135135
"includeCategory":
136-
"Especifica una categoría para incluir en los resultados de búsqueda. No se utilizan categorías en el conjunto de datos predeterminado.",
136+
"Especifica una categoría para incluir en los resultados de búsqueda. No se utilizan categorías en el conjunto de datos predeterminado.",
137137
"excludeCategory":
138138
"Especifica una categoría para excluir de los resultados de búsqueda. No se utilizan categorías en el conjunto de datos predeterminado.",
139139
"useSemanticReranker":

app/frontend/src/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"retrieveNumber":
134134
"Définit le nombre de résultats de recherche à récupérer d'Azure AI Search. Plus de résultats peuvent augmenter la probabilité de trouver la bonne réponse, mais peuvent amener le modèle à se 'perdre au milieu'.",
135135
"includeCategory":
136-
"Spécifie une catégorie à inclure dans les résultats de recherche. Il n'y a aucune catégorie utilisée dans l'ensemble de données par défaut.",
136+
"Spécifie une catégorie à inclure dans les résultats de recherche. Il n'y a aucune catégorie utilisée dans l'ensemble de données par défaut.",
137137
"excludeCategory":
138138
"Spécifie une catégorie à exclure des résultats de recherche. Il n'y a aucune catégorie utilisée dans l'ensemble de données par défaut.",
139139
"useSemanticReranker":

app/frontend/src/pages/ask/Ask.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -427,23 +427,21 @@ export function Component(): JSX.Element {
427427
/>
428428

429429
<Dropdown
430-
id={includeCategoryFieldId}
431-
className={styles.chatSettingsSeparator}
432-
label={t("labels.includeCategory")}
433-
selectedKey={includeCategory}
434-
onChange={onIncludeCategoryChanged}
435-
aria-labelledby={includeCategoryId}
436-
options={[
437-
{ key: '', text: t("labels.includeCategoryOptions.all") }
438-
]}
439-
onRenderLabel={(props: IDropdownProps | undefined) => (
440-
<HelpCallout
441-
labelId={includeCategoryId}
442-
fieldId={includeCategoryFieldId}
443-
helpText={t("helpTexts.includeCategory")}
444-
label={props?.label}
445-
/>
446-
)}
430+
id={includeCategoryFieldId}
431+
className={styles.chatSettingsSeparator}
432+
label={t("labels.includeCategory")}
433+
selectedKey={includeCategory}
434+
onChange={onIncludeCategoryChanged}
435+
aria-labelledby={includeCategoryId}
436+
options={[{ key: "", text: t("labels.includeCategoryOptions.all") }]}
437+
onRenderLabel={(props: IDropdownProps | undefined) => (
438+
<HelpCallout
439+
labelId={includeCategoryId}
440+
fieldId={includeCategoryFieldId}
441+
helpText={t("helpTexts.includeCategory")}
442+
label={props?.label}
443+
/>
444+
)}
447445
/>
448446

449447
<TextField

app/frontend/src/pages/chat/Chat.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
import { useRef, useState, useEffect, useContext } from "react";
22
import { useTranslation } from "react-i18next";
33
import { Helmet } from "react-helmet-async";
4-
import {
5-
Checkbox,
6-
Panel,
7-
DefaultButton,
8-
TextField,
9-
ITextFieldProps,
10-
ICheckboxProps,
11-
Dropdown,
12-
IDropdownOption,
13-
IDropdownProps
14-
} from "@fluentui/react";
4+
import { Checkbox, Panel, DefaultButton, TextField, ITextFieldProps, ICheckboxProps, Dropdown, IDropdownOption, IDropdownProps } from "@fluentui/react";
155
import { SparkleFilled } from "@fluentui/react-icons";
166
import { useId } from "@fluentui/react-hooks";
177
import readNDJSONStream from "ndjson-readablestream";
@@ -633,7 +623,7 @@ const Chat = () => {
633623
onChange={onIncludeCategoryChanged}
634624
aria-labelledby={includeCategoryId}
635625
options={[
636-
{ key: '', text: t("labels.includeCategoryOptions.all") },
626+
{ key: "", text: t("labels.includeCategoryOptions.all") }
637627
// You can add a category key here for ingested data like below:
638628
// { key: 'categoryName', text: 'Meaningful Category Name' }
639629
// Alternatively, display the key to guide the user on what to type

infra/core/host/container-app.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var keyvaultIdentitySecrets = [for secret in items(keyvaultIdentities): {
100100
name: secret.key
101101
keyVaultUrl: secret.value.keyVaultUrl
102102
identity: secret.value.identity
103-
}]
103+
}]
104104

105105
module containerRegistryAccess '../security/registry-access.bicep' = if (usePrivateRegistry) {
106106
name: '${deployment().name}-registry-access'
@@ -116,7 +116,7 @@ resource app 'Microsoft.App/containerApps@2023-05-02-preview' = {
116116
tags: tags
117117
// It is critical that the identity is granted ACR pull access before the app is created
118118
// otherwise the container app will throw a provision error
119-
// This also forces us to use an user assigned managed identity since there would no way to
119+
// This also forces us to use an user assigned managed identity since there would no way to
120120
// provide the system assigned identity with the ACR pull access before the app is created
121121
dependsOn: usePrivateRegistry ? [ containerRegistryAccess ] : []
122122
identity: {

infra/core/networking/private-dns-zones.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ resource privateDnsZoneLink 'Microsoft.Network/privateDnsZones/virtualNetworkLin
3636
}
3737

3838
output privateDnsZoneName string = dnsZone.name
39-
output id string = dnsZone.id
39+
output id string = dnsZone.id

infra/core/networking/private-endpoint.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ resource privateEndpoint 'Microsoft.Network/privateEndpoints@2021-02-01' = {
5858
}
5959

6060
output name string = privateEndpoint.name
61-
output id string = privateEndpoint.id
61+
output id string = privateEndpoint.id

0 commit comments

Comments
 (0)