v2025011401: Make ChatGPT model in the ChatGPT Plugin configurable (#5)
Latest
* Add minimized button to ChatGPTPopover component
* Use MinimizedBar component
* Add built plugin with MinimizedBar component
* Update per feedback
* Remove manual event listener
* Remove unuse import
* Add style on header
* Remove unncessary esc key disable
* Minimize Chat when Edit form is opened
* Remove unnecessary useCallback
* Only show warning when there is an actual conversation
* Use messages to determine hasConverstation ref
* Rollback of checking edit dialog state
* Add built version for Rollback of checking edit dialog state
* Make ChatGPT model in the ChatGPT Plugin configurable
* Filter models list to chat completion
* Fix merge conflict
* Rollback unneccary code clean-up
* Add voice to text prompt
* Add select language with defautl en-US for speech to text
* Add image generation with DALL-E
* Refactoring to use SaveImageDialog
* Remove zindex change
* Add a drawer to choose chat mode
* Mic leave event to stop recording
* Add function call to publish a content
* Refactor component ChatGPTModelSelectMenu
* Add site context and improve publish_content function
* Add function to update template
* Refresh preview after template change
* Only refresh page if updating current page template
* Add function to update contet (pages, components)
* Add function to update content type definition
* Correct the promt with content type definition with xml content
* Fix case when guest path is not available
* add additoinal context to update functions
* c
* update instructions for template and form definition commands
* update instructions for template and form definition commands
* add image placeholder support
* Add revert to previous version function
* Add README to disable Studio sandbox
* Always refresh preview after the change
* support updates to form defintions with image data sources
* Fix typo
* check form defintions and content returend by the LLM to make sure it's XML before committing
* add 'undo' to the description for revert becusae its a less technical term
* format the prompts to be more readable
* Use CloseableHttpClient to avoid sandbox issue
* Use space instead of tab
* Fix bug model stays as GPT4o first time switching to dal-e
* Render markdown in the chat
* add analyze template function
* Add function def for analyze_template
* Minimize chat when click out instead of warning
* Modify default options for images generation
* Add primary color on chat mode when active
* Add visualize when the chatgpt is thinking
* Add speaker mode
* Use image name as it is from Dal-e response
* Add image size option
* Improve text to speech
* Add option to create folder when saving image
* Modify the default text if preview is broken
* Fix bug state changed when closing the popover
* Remove not neccessary yarn files
* Correct the updated plugin versioning
* Update package.json to align with studio-ui v4.2
* Use inline css for highlightjs
* Revert function copyTextToClipboard
* Add hook function userMarkdownParser
* Refactoring fetchSandboxItemByPath function to use SDK utils
* Rename function to fetch context data with more detail comment
* Use getGlobalHeaders from the SDK
* Refactoring plugin APIs to use createFetchUrl
* Refactoring function name resolveCurrentContentTypeId as suggested
* Refactoring to use publish function from SDK
* Use SDK to fetch versions
* Refactoring to use revertTo function from SDK
* Refactor to use fetchContentXML
* Refactor to use writeContent from SDK
* Refactor duplicated system message to defaultFunctionCallSystemMessage
* remove unneccesary \n
* Revert change on main.tsx
* Make ThinkingIcon it own file
* Use CircularProgress while waiting for the response from chatgpt
---------
Co-authored-by: russdanner <russ.danner@craftercms.com>