Skip to content

Commit 4fed2f0

Browse files
authored
Merge pull request #36 from BandaruDheeraj/patch-2
Update functions-bindings-openai-assistantpost-input.md
2 parents 74deea6 + b1fcbbf commit 4fed2f0

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

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

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Azure OpenAI assistant post input binding for Azure Functions
2+
title: Azure OpenAI Assistant Post Input Binding for Azure Functions
33
description: Learn how to use the Azure OpenAI assistant post input binding to query chat bots during function execution in Azure Functions.
44
ms.topic: reference
55
ms.date: 05/07/2024
66
zone_pivot_groups: programming-languages-set-functions
77
---
88

9-
# Azure OpenAI assistant post input binding for Azure Functions
9+
# Azure OpenAI Assistant Post Input Binding for Azure Functions
1010

1111
[!INCLUDE [preview-support](../../includes/functions-openai-support-limitations.md)]
1212

@@ -34,23 +34,20 @@ A C# function can be created using one of the following C# modes:
3434
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
3535

3636
:::code language="csharp" source="~/functions-openai-extension/samples/assistant/csharp-ooproc/AssistantApis.cs" range="58-78":::
37-
37+
<!--
3838
### [In-process](#tab/in-process)
3939
40-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
40+
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
4141

4242
---
4343

4444
::: zone-end
4545
::: zone pivot="programming-language-java"
46-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
47-
<!---uncomment when code example is available:
48-
{{This comes from the example code comment}}
4946

50-
:::code language="java" source="~/functions-openai-extension/samples/{{link to the correct sample.java}}" range="{{named is better than range}}":::
47+
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
48+
49+
:::code language="java" source="~/functions-openai-extension/samples/assistant/java/src/main/java/com/azfs/AssistantApis.java" range="83-103":::
5150

52-
{{Add more examples if available}}
53-
-->
5451
::: zone-end
5552
::: zone pivot="programming-language-javascript"
5653
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
@@ -70,20 +67,17 @@ This example demonstrates the creation process, where the HTTP POST function tha
7067

7168
::: zone-end
7269
::: zone pivot="programming-language-powershell"
73-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
74-
<!---uncomment when code example is available:
75-
{{This comes from the example code comment}}
7670

77-
Here's the _function.json_ file for {{example}}:
71+
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
72+
73+
Here's the _function.json_ file for post user query:
7874

79-
:::code language="json" source="~/functions-openai-extension/samples/{{link to the correct function.json}}" :::
75+
:::code language="json" source="~/functions-openai-extension/samples/assistant/powershell/PostUserQuery/function.json" :::
8076

8177
For more information about *function.json* file properties, see the [Configuration](#configuration) section.
8278

83-
{{This comes from the example code comment}}
79+
:::code language="powershell" source="~/functions-openai-extension/samples/assistant/powershell/PostUserQuery/run.ps1" :::
8480

85-
:::code language="powershell" source="~/functions-openai-extension/samples/{{link to the correct sample.ps1}}" :::
86-
-->
8781
::: zone-end
8882
::: zone pivot="programming-language-python"
8983
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
@@ -162,5 +156,5 @@ See the [Example section](#example) for complete examples.
162156
+ [Assistant samples](https://github.com/Azure/azure-functions-openai-extension/tree/main/samples/assistant)
163157
+ [Azure OpenAI extension](functions-bindings-openai.md)
164158
+ [Azure OpenAI assistant trigger](functions-bindings-openai-assistant-trigger.md)
165-
+ [Azure OpenAI assistant query input binding ](functions-bindings-openai-assistantcreate-output.md)
166-
+ [Azure OpenAI assistant create output binding ](functions-bindings-openai-assistantcreate-output.md)
159+
+ [Azure OpenAI assistant query input binding](functions-bindings-openai-assistantcreate-output.md)
160+
+ [Azure OpenAI assistant create output binding](functions-bindings-openai-assistantcreate-output.md)

0 commit comments

Comments
 (0)