Skip to content

Commit fff7870

Browse files
Merge pull request #276181 from ggailey777/patch-2
[Funtions][OpenAI] Remove C# in-proc from last 2 refs
2 parents fceb34f + efc5526 commit fff7870

File tree

2 files changed

+5
-42
lines changed

2 files changed

+5
-42
lines changed

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,16 @@ zone_pivot_groups: programming-languages-set-functions
1414
The Azure OpenAI semantic search input binding allows you to use semantic search on your embeddings.
1515

1616
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about semantic ranking in Azure AI Search, see [Semantic ranking in Azure AI Search](../search/semantic-search-overview.md).
17-
::: zone pivot="programming-language-javascript,programming-language-typescript"
18-
> [!NOTE]
19-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
20-
::: zone-end
21-
::: zone pivot="programming-language-python"
22-
> [!NOTE]
23-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
24-
::: zone-end
17+
18+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2519

2620
## Example
2721

2822
::: zone pivot="programming-language-csharp"
29-
A C# function can be created using one of the following C# modes:
30-
31-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
32-
33-
### [Isolated process](#tab/isolated-process)
34-
3523
This example shows how to perform a semantic search on a file.
3624

3725
:::code language="csharp" source="~/functions-openai-extension/samples/rag-aisearch/csharp-ooproc/FilePrompt.cs" range="63-70":::
3826

39-
<!--
40-
### [In-process](#tab/in-process)
41-
42-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
43-
44-
---
45-
4627
::: zone-end
4728
::: zone pivot="programming-language-java"
4829

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

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to use the Azure OpenAI text completion input binding to
44
ms.topic: reference
55
ms.custom:
66
- build-2024
7-
ms.date: 05/08/2024
7+
ms.date: 05/23/2024
88
zone_pivot_groups: programming-languages-set-functions
99
---
1010

@@ -15,24 +15,12 @@ zone_pivot_groups: programming-languages-set-functions
1515
The Azure OpenAI text completion input binding allows you to bring the results text completion APIs into your code executions. You can define the binding to use both predefined prompts with parameters or pass through an entire prompt.
1616

1717
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI completions, see [Learn how to generate or manipulate text](../ai-services/openai/how-to/completions.md).
18-
::: zone pivot="programming-language-javascript,programming-language-typescript"
19-
> [!NOTE]
20-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
21-
::: zone-end
22-
::: zone pivot="programming-language-python"
23-
> [!NOTE]
24-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
25-
::: zone-end
18+
19+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2620

2721
## Example
2822

2923
::: zone pivot="programming-language-csharp"
30-
A C# function can be created using one of the following C# modes:
31-
32-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
33-
34-
### [Isolated process](#tab/isolated-process)
35-
3624
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.
3725

3826
:::code language="csharp" source="~/functions-openai-extension/samples/textcompletion/csharp-ooproc/TextCompletions.cs" range="23-31":::
@@ -41,12 +29,6 @@ This example takes a prompt as input, sends it directly to the completions API,
4129

4230
:::code language="csharp" source="~/functions-openai-extension/samples/textcompletion/csharp-ooproc/TextCompletions.cs" range="37-46":::
4331

44-
### [In-process](#tab/in-process)
45-
46-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
47-
48-
---
49-
5032
::: zone-end
5133
::: zone pivot="programming-language-java"
5234
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.

0 commit comments

Comments
 (0)