Skip to content

Commit 5a149a2

Browse files
authored
[Functions] Update broken repo links to Azure OpenAI samples
1 parent 087c99b commit 5a149a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/azure-functions/functions-bindings-openai-textcompletion-input.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure OpenAI text completion input binding for Azure Functions
33
description: Learn how to use the Azure OpenAI text completion input binding to access Azure OpenAI text completion APIs during function execution in Azure Functions.
44
ms.topic: reference
55
ms.custom: build-2024, devx-track-extended-java, devx-track-js, devx-track-python, devx-track-ts
6-
ms.date: 05/23/2024
6+
ms.date: 07/08/2024
77
zone_pivot_groups: programming-languages-set-functions
88
---
99

@@ -41,14 +41,16 @@ This example takes a prompt as input, sends it directly to the completions API,
4141
::: zone-end
4242
::: zone pivot="programming-language-javascript"
4343

44-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
44+
This example demonstrates the _templating_ pattern, where the HTTP trigger function takes a `name` parameter and embeds it into a text prompt, which is then sent to the Azure OpenAI completions API by the extension. The response to the prompt is returned in the HTTP response.
45+
46+
:::code language="typescript" source="~/functions-openai-extension/samples/textcompletion/javascript/src/functions/whois.js" :::
4547

4648
::: zone-end
4749
::: zone pivot="programming-language-typescript"
4850

4951
This example demonstrates the _templating_ pattern, where the HTTP trigger function takes a `name` parameter and embeds it into a text prompt, which is then sent to the Azure OpenAI completions API by the extension. The response to the prompt is returned in the HTTP response.
5052

51-
:::code language="typescript" source="~/functions-openai-extension/samples/textcompletion/nodejs/src/functions/whois.ts" :::
53+
:::code language="typescript" source="~/functions-openai-extension/samples/textcompletion/typescript/src/functions/whois.ts" :::
5254

5355
::: zone-end
5456
::: zone pivot="programming-language-powershell"

0 commit comments

Comments
 (0)