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

Thread.message.attachment #785

Closed
1 task done
oljaskrut opened this issue Apr 19, 2024 · 4 comments
Closed
1 task done

Thread.message.attachment #785

oljaskrut opened this issue Apr 19, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@oljaskrut
Copy link

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

I see you've changed types, so that
attachment : {
file_id: string
tools: ["file_search" | "code_interpreter"]
}

but API errors with expected attachment.tools[0] be object not string

plus: i could not get files work with assistant v2, via both attachment and assistant/thread vectorStore attachments

To Reproduce

  1. Attach file to message, via attachment = [{file_id: your_file_id, tools: ["file_search"] }
  2. Get API error when creating thread message

Code snippets

No response

OS

Windows 11 + WSL 1.0

Node version

20.11.0

Library version

4.38.1

@oljaskrut oljaskrut added the bug Something isn't working label Apr 19, 2024
@Clad012
Copy link

Clad012 commented Apr 19, 2024

+1, it should be tools?: { type: "file_search" | "code_interpreter" }[]

@arthur-caillaud
Copy link

+1

@ak-notify
Copy link

+1 it should be tools?: Array<{ type: "file_search" | "code_interpreter" }>

@oljaskrut
Copy link
Author

typing fix introduced in new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants