Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenAI] [Assistants] Add fileIds to Thread messages #29500

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

glharper
Copy link
Member

Fix #29473

Packages impacted by this PR

@azure/openai-assistants

Issues associated with this PR

#29473

Describe the problem that is addressed by this PR

Add fileIds to Thread messages

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@azure/openai-assistants

@glharper glharper merged commit a81dcbe into main Apr 29, 2024
14 checks passed
@glharper glharper deleted the glharper/fileIds-to-thread branch April 29, 2024 23:50
glharper pushed a commit that referenced this pull request Apr 30, 2024
### Packages impacted by this PR
@azure/openai-assistants

### Issues associated with this PR
#29500 only updated the types, not the actual operations

### Describe the problem that is addressed by this PR
With #29500 PR, the `fileIds` type is added, but the actual operations
(`createThread` and `createThreadAndRun`) are still missing the
`file_ids` property in the message objects.

This PR adds `file_ids` to both of these two operations.

Additionally, there are some other fixes:
* The `AssistantThreadCreationOptions` in `rest/models.ts` was not
updated along with #29500 PR.
* The `AssistantThreadCreationOptions` type in `api/operations.ts` was
incorrectly importing from `rest/index`, instead it should be importing
from `models/models`.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[@azure/openai-assistants] Cannot set files on individual thread/message
3 participants