davidmigloz / langchain_dart

Build LLM-powered Dart/Flutter applications.
https://langchaindart.dev
MIT License
387 stars 68 forks source link

OpenAI missing a way to upload file #403

Open Paroca72 opened 3 months ago

Paroca72 commented 3 months ago

System Info

Flutter

Related Components

Reproduction

Very thanks for this library.. is very useful.

I'm not able to find a way to upload file to AI. To understand better is what in phyton was:

file = client.files.create(
  file=open("edgar/aapl-10k.pdf", "rb"), purpose="assistants"
)

Thanks for your help Sam

Expected behavior

client.createFile(...)

peoplesdriver commented 2 months ago

hi, any update on this?

davidmigloz commented 2 months ago

This is currently blocked by this issue in the OpenAPI generator we use to generate the openai_dart client.

It could also be added manually to the client for the time being.

I don't have bandwidth to work on this at the moment, so it'd great if someone can send a PR 🙂