Skip to content

Commit 1bfcc90

Browse files
Fix body structure in create_or_update method
1 parent 87a98f5 commit 1bfcc90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App/backend/plugins/chat_with_data_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async def get_answers_from_calltranscripts(
154154
project_index = project_client.indexes.create_or_update(
155155
name=f"project-index-{config.AZURE_SEARCH_INDEX}",
156156
version="1",
157-
body={
157+
index={
158158
"connectionName": config.AZURE_SEARCH_CONNECTION_NAME,
159159
"indexName": config.AZURE_SEARCH_INDEX,
160160
"type": "AzureSearch",
@@ -241,4 +241,4 @@ def get_project_openai_client(self):
241241
openai_client = project.inference.get_azure_openai_client(
242242
api_version=config.AZURE_OPENAI_PREVIEW_API_VERSION
243243
)
244-
return openai_client
244+
return openai_client

0 commit comments

Comments
 (0)