Skip to content

Commit 74deea6

Browse files
authored
Merge pull request #37 from BandaruDheeraj/patch-3
Update functions-bindings-openai-assistantquery-input.md
2 parents 38e3c3e + 45dc365 commit 74deea6

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

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

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

9-
# Azure OpenAI assistant query input binding for Azure Functions
9+
# Azure OpenAI Assistant Query Input Binding for Azure Functions
1010

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

@@ -35,22 +35,21 @@ This example demonstrates the creation process, where the HTTP GET function that
3535

3636
:::code language="csharp" source="~/functions-openai-extension/samples/assistant/csharp-ooproc/AssistantApis.cs" range="74-83":::
3737

38-
### [In-process](#tab/in-process)
38+
<!-- ### [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 GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
48+
49+
50+
:::code language="java" source="~/functions-openai-extension/samples/assistant/java/src/main/java/com/azfs/AssistantApis.java" range="63-78":::
51+
5152

52-
{{Add more examples if available}}
53-
-->
5453
::: zone-end
5554
::: zone pivot="programming-language-javascript"
5655
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
@@ -67,24 +66,22 @@ This example demonstrates the creation process, where the HTTP GET function that
6766

6867
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
6968

70-
:::code language="typescript" source="~/functions-openai-extension/samples/assistant/nodejs/src/functions/assistantApis.ts" range="53-67":::
69+
:::code language="typescript" source="~/functions-openai-extension/samples/assistant/nodejs/src/functions/assistantApis.ts" range="57-71":::
7170

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

78-
Here's the _function.json_ file for {{example}}:
74+
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
7975

80-
:::code language="json" source="~/functions-openai-extension/samples/{{link to the correct function.json}}" :::
76+
77+
Here's the _function.json_ file for Get Chat State:
78+
79+
:::code language="json" source="~/functions-openai-extension/samples/assistant/powershell/GetChatState/function.json" :::
8180

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

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

86-
:::code language="powershell" source="~/functions-openai-extension/samples/{{link to the correct sample.ps1}}" :::
87-
-->
8885
::: zone-end
8986
::: zone pivot="programming-language-python"
9087
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.

0 commit comments

Comments
 (0)