Skip to content

Commit

Permalink
com.openai.unity 7.0.1 (#136)
Browse files Browse the repository at this point in the history
- Fixed AssistantExtension.UploadFileAsync spelling error with file purpose.
  • Loading branch information
StephenHodgson authored Dec 3, 2023
1 parent fd16d5f commit a9a5416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static async Task<AssistantFileResponse> AttachFileAsync(this AssistantRe
/// <returns><see cref="AssistantFileResponse"/>.</returns>
public static async Task<AssistantFileResponse> 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);
}

Expand Down
2 changes: 1 addition & 1 deletion OpenAI/Packages/com.openai.unity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a9a5416

Please sign in to comment.