diff --git a/OpenAI/Packages/com.openai.unity/Runtime/Assistants/AssistantExtensions.cs b/OpenAI/Packages/com.openai.unity/Runtime/Assistants/AssistantExtensions.cs index 45baa3a9..7a4adfbd 100644 --- a/OpenAI/Packages/com.openai.unity/Runtime/Assistants/AssistantExtensions.cs +++ b/OpenAI/Packages/com.openai.unity/Runtime/Assistants/AssistantExtensions.cs @@ -75,7 +75,7 @@ public static async Task AttachFileAsync(this AssistantRe /// . public static async Task UploadFileAsync(this AssistantResponse assistant, string filePath, CancellationToken cancellationToken = default) { - var file = await assistant.Client.FilesEndpoint.UploadFileAsync(new FileUploadRequest(filePath, "assistant"), uploadProgress: null, cancellationToken); + var file = await assistant.Client.FilesEndpoint.UploadFileAsync(new FileUploadRequest(filePath, "assistants"), uploadProgress: null, cancellationToken); return await assistant.AttachFileAsync(file, cancellationToken); } diff --git a/OpenAI/Packages/com.openai.unity/package.json b/OpenAI/Packages/com.openai.unity/package.json index 3368838b..49a07de8 100644 --- a/OpenAI/Packages/com.openai.unity/package.json +++ b/OpenAI/Packages/com.openai.unity/package.json @@ -3,7 +3,7 @@ "displayName": "OpenAI", "description": "A OpenAI package for the Unity Game Engine to use GPT-4, GPT-3.5, GPT-3 and Dall-E though their RESTful API (currently in beta).\n\nIndependently developed, this is not an official library and I am not affiliated with OpenAI.\n\nAn OpenAI API account is required.", "keywords": [], - "version": "7.0.0", + "version": "7.0.1", "unity": "2021.3", "documentationUrl": "https://github.com/RageAgainstThePixel/com.openai.unity#documentation", "changelogUrl": "https://github.com/RageAgainstThePixel/com.openai.unity/releases",