Skip to content

Commit 748def7

Browse files
authored
Merge pull request #38155 from github/repo-sync
Repo sync
2 parents 87c2f8b + 85c04c2 commit 748def7

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

content/copilot/using-github-copilot/ai-models/using-openai-gpt-41-in-github-copilot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ OpenAI has a family of large language models that you can use as an alternative
1818
* {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}
1919
* Immersive mode in {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.github %}
2020

21-
{% data variables.copilot.copilot_gpt_41 %} is hosted by OpenAI and GitHub's Azure tenant when used in {% data variables.product.prodname_copilot %}. OpenAI makes the [following data commitment](https://openai.com/enterprise-privacy/): _We [OpenAI] do not train our models on your business data by default_. GitHub maintains a [zero data retention agreement](https://platform.openai.com/docs/guides/your-data) with OpenAI.
21+
{% data variables.copilot.copilot_gpt_41 %} is hosted by GitHub's Azure tenant when used in {% data variables.product.prodname_copilot %}.
2222

2323
When using {% data variables.copilot.copilot_gpt_41 %}, input prompts and output completions continue to run through {% data variables.product.prodname_copilot %}'s content filters for public code matching, when applied, along with those for harmful, offensive, or off-topic content.
2424

data/ui.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ search:
4242
clear_search_query: Clear
4343
view_all_search_results: View more results
4444
no_results_found: No results found
45+
no_results_found_announcement: 'Search Docs: No results found'
4546
search_docs_with_query: Search docs for "{{query}}"
4647
privacy_disclaimer: For product and service improvement purposes, the GitHub Docs team will retain questions and answers generated in the Docs search function. Please see the <a href="https://docs.github.com/privacy"><u>GitHub Privacy Statement</u></a> to review how GitHub collects and uses your data.
4748
ai:

src/fixtures/fixtures/data/ui.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ search:
4242
clear_search_query: Clear
4343
view_all_search_results: View more results
4444
no_results_found: No results found
45+
no_results_found_announcement: 'Search Docs: No results found'
4546
search_docs_with_query: Search docs for "{{query}}"
4647
privacy_disclaimer: For product and service improvement purposes, the GitHub Docs team will retain questions and answers generated in the Docs search function. Please see the <a href="https://docs.github.com/privacy"><u>GitHub Privacy Statement</u></a> to review how GitHub collects and uses your data.
4748
ai:

src/search/components/input/SearchOverlay.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export function SearchOverlay({
9191
const [aiCouldNotAnswer, setAICouldNotAnswer] = useState<boolean>(false)
9292
const [showSpinner, setShowSpinner] = useState(false)
9393
const [scrollPos, setScrollPos] = useState(0)
94+
const [announcement, setAnnouncement] = useState<string>('')
9495

9596
const { hasOpenHeaderNotifications } = useSharedUIContext()
9697

@@ -188,6 +189,7 @@ export function SearchOverlay({
188189

189190
// Combine options for key navigation
190191
const [combinedOptions, generalOptionsWithViewStatus, aiOptionsWithUserInput] = useMemo(() => {
192+
setAnnouncement('')
191193
let generalOptionsWithViewStatus = [...generalSearchResults]
192194
const aiOptionsWithUserInput = [...userInputOptions, ...filteredAIOptions]
193195
const combinedOptions = [] as Array<{
@@ -209,6 +211,7 @@ export function SearchOverlay({
209211
} as unknown as GeneralSearchHit)
210212
}
211213
} else if (urlSearchInputQuery.trim() !== '' && !searchLoading) {
214+
setAnnouncement(t('search.overlay.no_results_found_announcement'))
212215
generalOptionsWithViewStatus.push({
213216
title: t('search.overlay.no_results_found'),
214217
isNoResultsFound: true,
@@ -815,6 +818,22 @@ export function SearchOverlay({
815818
dangerouslySetInnerHTML={{ __html: t('search.overlay.privacy_disclaimer') }}
816819
/>
817820
</footer>
821+
<div
822+
aria-live="assertive"
823+
style={{
824+
position: 'absolute',
825+
width: '1px',
826+
height: '1px',
827+
padding: '0',
828+
margin: '-1px',
829+
overflow: 'hidden',
830+
clip: 'rect(0, 0, 0, 0)',
831+
whiteSpace: 'nowrap',
832+
border: '0',
833+
}}
834+
>
835+
{announcement}
836+
</div>
818837
</Overlay>
819838
</>
820839
)

0 commit comments

Comments
 (0)