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

Implement translation with Built-in AI API #41212

Open
vianasw opened this issue Jan 21, 2025 · 3 comments · May be fixed by #41724
Open

Implement translation with Built-in AI API #41212

vianasw opened this issue Jan 21, 2025 · 3 comments · May be fixed by #41724
Assignees
Labels
[Feature] AI AI tools in the post and site editor (AI Assistant,Write Brief) [Pri] Normal [Status] In Progress [Type] Task

Comments

@vianasw
Copy link
Contributor

vianasw commented Jan 21, 2025

No description provided.

@jeherve jeherve added [Type] Task [Pri] Normal [Feature] AI AI tools in the post and site editor (AI Assistant,Write Brief) labels Jan 21, 2025
@mwatson mwatson self-assigned this Jan 27, 2025
@mwatson
Copy link
Contributor

mwatson commented Jan 27, 2025

This will also include functionality for validating that the API is available and some generic stuff. Hopefully summary can be implemented on top of it with minimal changes.

@mwatson
Copy link
Contributor

mwatson commented Jan 30, 2025

The proper place to implement this ended up being the handleRequestSuggestion method in projects/plugins/jetpack/extensions/blocks/ai-assistant/extensions/with-ai-extension.tsx

There are a bunch of handlers that run when we get AI suggestions, so I just need to make the Chrome AI responses compatible with those. I'm currently waiting for the promise to finish, but I think streaming it like we do with the OpenAI suggestions would work fine.

Docs on streaming responses from the LLM: https://developer.chrome.com/docs/ai/streaming

@mwatson
Copy link
Contributor

mwatson commented Jan 31, 2025

Posted an update with a video in the P2 comments: pe4Cmx-30R-p2

Still lots to be done but I'm happy with the end result for this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] AI AI tools in the post and site editor (AI Assistant,Write Brief) [Pri] Normal [Status] In Progress [Type] Task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants