Skip to content

Commit

Permalink
AI Assistant: Support backend prompt building when composing forms (#…
Browse files Browse the repository at this point in the history
…32495)

* Turn content optional and add context property to the message

* Move form creation prompts to server side

* Add changelog files

* Fix changelog type error

* Bump version number

* Keep sending the prompt so we dont need to sync client and backend deployment

* Rename user request prompt type

* Update prompt types to match backend refactory

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/5963984198
  • Loading branch information
lhkowalski authored and matticbot committed Aug 24, 2023
1 parent c3399f7 commit 60e5da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
This is an alpha version! The changes listed here are not final.

### Changed
- AI Assistant: Change messages to turn content optional and start supporting a context property.
- AI Extension: Specify input background color
- Updated package dependencies.

Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export type SuggestionErrorCode =
*/
export type PromptItemProps = {
role: 'system' | 'user' | 'assistant';
content: string;
content?: string;
context?: object;
};

export type PromptMessagesProp = Array< PromptItemProps >;
Expand Down

0 comments on commit 60e5da1

Please sign in to comment.