Draft
Conversation
…es (list/create/update events & venues, calculate-dates). Enables natural language event management via WordPress REST API.
PR Summary
|
Contributor
|
@jmarx quick notes:
This looks great! Thx! |
…ility Adds get_calculate_dates_ability() method that checks for ai/calculate-dates ability from external AI plugin and falls back to gatherpress/calculate-dates if not available. This allows GatherPress to use the external plugin's date calculator when available.
…s:ignore comments
- Fix empty catch block by adding code (set provider_name to empty string) - Fix line length issues by shortening translation strings - Add @throws tag to process_conversation_loop method - Fix inline comment punctuation - All errors and warnings resolved (0 errors, 0 warnings)
- Break long translation string across multiple lines - All linting issues resolved for class-setup.php
…s test, remove old test files
…, init_wp_ai_client, increase_ai_request_timeout)
…comments for WP_Ability
- Backend: Accumulate token usage across conversation loop iterations - Backend: Calculate estimated cost using GPT-4 Turbo pricing (input: --.01/1K, output: --.03/1K) - Frontend: Display token counts and estimated cost in chat messages - Tests: Add JS tests for token usage display - Tests: Add PHP tests for token usage calculation structure This feature helps track API costs during AI conversations.
# Conflicts: # composer.lock
Contributor
Preview changes with PlaygroundYou can preview the recent changes for PR#1204 with the following PHP versions: PHP Version 8.4
PHP Version 8.2
PHP Version 7.4
Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
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
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.
Description of the Change
Closes #
How to test the Change
Changelog Entry
Credits
Props @username, @username2, ...
Checklist: