Skip to content

Update Prompt API to latest shape#11

Merged
felixarntz merged 4 commits intofelixarntz:mainfrom
tomayac:prompt-api
Oct 10, 2024
Merged

Update Prompt API to latest shape#11
felixarntz merged 4 commits intofelixarntz:mainfrom
tomayac:prompt-api

Conversation

@tomayac
Copy link
Copy Markdown
Contributor

@tomayac tomayac commented Oct 9, 2024

I didn't test this, so please proceed with caution. If it doesn't work, it most likely only fails because of the modelParams.

Copy link
Copy Markdown
Owner

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomayac Thanks for the PR!

This is all still very early, so haven't verified it yet either, but left some feedback based on the docs.

Comment thread src/ai-store/browser.js Outdated
Comment thread src/ai-store/generative-ai-service.js Outdated
tomayac and others added 2 commits October 10, 2024 09:01
Co-authored-by: Felix Arntz <flixos90@gmail.com>
Co-authored-by: Felix Arntz <flixos90@gmail.com>
Comment thread src/ai-store/browser.js Outdated
Comment thread src/ai-store/generative-ai-service.js Outdated
Copy link
Copy Markdown
Owner

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the two formatting issues, LGTM!

Thanks again!

@felixarntz
Copy link
Copy Markdown
Owner

The plugin check error here is unrelated and I believe incorrect, so I'm going to go ahead and merge this. For reference, I opened WordPress/plugin-check#713 upstream.

@felixarntz felixarntz merged commit 6b81488 into felixarntz:main Oct 10, 2024
@tomayac tomayac deleted the prompt-api branch October 11, 2024 08:22
@tomayac
Copy link
Copy Markdown
Contributor Author

tomayac commented Oct 11, 2024

Just to close: self is defined on the main thread and on workers. In contrast, window only exists on the main thread. By using self, you're future-proofing your code should it move to a worker in the future. It's also just a tad shorter :-).

@felixarntz felixarntz added the bug Something isn't working label Oct 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants