这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@SergioMorchon
Copy link

In the 01.09 exercise about sending ima inage file along with the textual prompt, the solution proposes using a custom file to URL serialization, and using the parts API of the SDK.

This PR proposes a small change to use the DataTransfer Web API that I think is more affordable and direct to tackle the problem, avoiding the serialization stuff, and using directly the files prop of the `sendMessage`` function.

Anyway if using the parts API of sendMessage is a core pice of the exercise (I think it is nice to know about it), feel free to thiscard this PR.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant