Skip to content

Commit 3f78662

Browse files
authored
[Functions] Fix wrong code tag for Python examples
1 parent 7fb2ea5 commit 3f78662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ The code simply returns the text from the completion API as the response:
6868
::: zone pivot="programming-language-python"
6969
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.
7070

71-
:::code language="java" source="~/functions-openai-extension/samples/textcompletion/python/function_app.py" range="7-11" :::
71+
:::code language="python" source="~/functions-openai-extension/samples/textcompletion/python/function_app.py" range="7-11" :::
7272

7373
This example takes a prompt as input, sends it directly to the completions API, and returns the response as the output.
7474

75-
:::code language="csharp" source="~/functions-openai-extension/samples/textcompletion/python/function_app.py" range="14-18" :::
75+
:::code language="python" source="~/functions-openai-extension/samples/textcompletion/python/function_app.py" range="14-18" :::
7676

7777
::: zone-end
7878
<!--- End code examples section -->

0 commit comments

Comments
 (0)