-
Notifications
You must be signed in to change notification settings - Fork 3.1k
ai: add docs for api specification #1429
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
Draft
XiaochenCui
wants to merge
178
commits into
HeyPuter:refactor/puter-ai-router
Choose a base branch
from
XiaochenCui:ai/llm-api-spec-1377
base: refactor/puter-ai-router
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
ai: add docs for api specification #1429
XiaochenCui
wants to merge
178
commits into
HeyPuter:refactor/puter-ai-router
from
XiaochenCui:ai/llm-api-spec-1377
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…r workers (HeyPuter#1342) * event.puter * automatic opt out cors handling * remove "starting puterjs initialization" log * Set compatibility date * remove body log
* Update Portuguese translation of README * Update Portuguese and Spanish translation readme
…in main app list) (HeyPuter#1350) * Update README.md * Fixed issue: HeyPuter#1033 (Added app category display in Dev Center in main app list) * Fixed issue: HeyPuter#1033 (Added app category display in Dev Center in main app list) * test 1033 * Fixed issue: HeyPuter#1033 (Added app category display in Dev Center in main app list) * Fixed issue: HeyPuter#1033 (Added app category display in Dev Center in main app list) * Center the app checkbox --------- Co-authored-by: jelveh <[email protected]>
…erviceworker) (HeyPuter#1364) * xmlhttpreq partial support pt1 * XMLHTTPRequest shim cleanup * fix check for x-ndjson * change credit header at top of xhr shim
- Add new animation functionality to the taskbar; icons will enlarge when the mouse hovers over them - Introduce new CSS properties and styles to support the animation effects - Implement mouse move and leave event handling in UITaskbar - Add UITaskBarCreateCurve and UITask components
…" (HeyPuter#1366) This reverts commit 212bc88.
* Allow multipage apps in puterjs * Don't error on browsers which dont support sessionStorage
* feat(gui): Enhance taskbar functionality and positioning - Implement dynamic taskbar position management with options for left, bottom, and right placements. - Update desktop dimensions and window positioning based on taskbar position. - Add context menu options for changing taskbar position on desktop devices. - Ensure mobile devices always display the taskbar at the bottom. - Introduce CSS styles for taskbar positioning and adjust desktop padding accordingly. * feat(gui): Reinitialize tooltips based on taskbar position - Implement dynamic tooltip positioning for taskbar items based on the current taskbar location (left, right, bottom). - Ensure tooltips are destroyed and recreated when the taskbar position is updated, enhancing user experience and consistency. * feat(gui): Improve taskbar and tooltip positioning - Add support for dynamic tooltip positioning for the 'top' taskbar location. - Adjust CSS styles for arrow tooltips to enhance visual alignment and positioning. - Refine taskbar item positioning for left and right placements to ensure consistent appearance. * Improve popover positioning based on taskbar location - Improve `UIPopover` positioning logic to account for left and right taskbar placements. - Adjust Y position of popovers to ensure they appear correctly below toolbars for left/right taskbars. - Update CSS styles for arrow tooltips to enforce consistent positioning with !important declarations. * Refactor context menu positioning logic in UITaskbarItem - Introduce a helper function to dynamically calculate context menu position based on the taskbar's location (top, bottom, left, right). - Ensure context menus are positioned correctly relative to the taskbar item, improving usability across different taskbar placements. * Fix UITaskbar window height calculation for consistent positioning - Adjust the height calculation for windows in the UITaskbar to remove an unnecessary offset, ensuring accurate window sizing relative to the toolbar height. - This change improves the visual consistency of maximized windows across different taskbar placements. * Enhance window snapping and positioning based on taskbar location - Introduce a new function to calculate snap dimensions and positions dynamically based on the taskbar's location (left, right, bottom). - Update window snapping logic to ensure windows are positioned correctly relative to the taskbar, improving usability and visual consistency. - Adjust boundary checks for window placement to account for taskbar height and position, enhancing the overall user experience. * Update default taskbar position to 'left' and adjust CSS padding for desktop layout - Change the default taskbar position from 'bottom' to 'left' in UITaskbar. - Modify CSS to increase left padding for desktop taskbar positioning, enhancing layout consistency. * Improve CSS for desktop layout with height adjustments - Update CSS styles for input fields and desktop taskbar to set height to 100vh, ensuring consistent full-page layout across different screen sizes. - This change improves the visual consistency and usability of the interface. * Improve desktop selectable interactivity and taskbar tooltip behavior - Add functionality to mark the desktop as selectable active, improving user interaction with desktop elements. - Update tooltip display logic to only show when the desktop is not in a selectable state, enhancing usability. - Adjust CSS styles for desktop layout, ensuring consistent behavior and appearance when the desktop is active or inactive. * Update default taskbar position logic for first-time and existing users - Set the taskbar position to 'left' for first-time visitors and default to 'bottom' for returning users without a saved preference. - This change improves the user experience by providing a more intuitive initial layout for new users while maintaining consistency for existing users.
c101a01
to
f5bbdf9
Compare
- create new package - copy streaming utilities to new package
CompletionWriter is a copy of AIChatStream with a more accurate name that leaves room for stream writers for other AI formats (since "completion" is just one of many)
The Messages library had overloaded concerns and has now been split into UniversalPromptNormalizer (normalization for the "universal" input format), and NormalizedPromptUtil (functions that can be used on normalized prompt input for convenient inference).
I keep forgetting I can't do this and it only works the other way around, but I want the new AI module to use ES imports syntax. Luckily backend services have an async _construct lifecycle method that I can use to import the module and assign members to the instance variable.
f5bbdf9
to
7583555
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #1377