Skip to content

Commit e433fc0

Browse files
authored
Merge pull request #33 from Azure-Samples/gk/storage-fix
Fixes: Corrects typo in decorator argument
2 parents 6383b77 + 9c45eb7 commit e433fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/function_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def to_dict(self):
122122
# HTTP endpoint for saving snippets
123123
# This is accessible via standard HTTP POST requests
124124
@app.route(route="snippets", methods=["POST"], auth_level=func.AuthLevel.FUNCTION)
125-
@app.embeddings_input(arg_name="embeddings", input="{code}", input_type="rawText", embeddingsModel="%EMBEDDING_MODEL_DEPLOYMENT_NAME%")
125+
@app.embeddings_input(arg_name="embeddings", input="{code}", input_type="rawText", embeddings_model="%EMBEDDING_MODEL_DEPLOYMENT_NAME%")
126126
async def http_save_snippet(req: func.HttpRequest, embeddings: str) -> func.HttpResponse:
127127
"""
128128
HTTP trigger function to save a code snippet with its vector embedding.

0 commit comments

Comments
 (0)