Skip to content

enhance: Wordpress - function to guarantee correct post format and bug fix #433

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

Merged
merged 7 commits into from
Feb 14, 2025

Conversation

tybalex
Copy link
Contributor

@tybalex tybalex commented Feb 12, 2025

  • use mistune library to convert markdown content to html(wordpress format). No more praying to the LLM for the correct format 🥲 Wordpress - Contents of the post are not formatted correctly. obot#1665
  • Add a GetMe tool to get the role and capabilities of the current user. This tool also used for credential validation, see the validate-credential.gpt.
  • Add instruction to guide user to locate the correct WordPress Site URL for authentication
  • Handle error response status code(401 authorization error and 403 permission error). Add loggers to certain tools to print information to Obot server.
  • tweak prompts for some tools

…ifferent response type: both list and dict in one function, this will fix error - list indices must be integers or slices, not str
@tybalex tybalex self-assigned this Feb 12, 2025
@tybalex tybalex marked this pull request as draft February 12, 2025 08:58
@tybalex tybalex marked this pull request as ready for review February 13, 2025 10:36
@tybalex tybalex changed the title enhance: Wordpress - function to force html format and bug fix enhance: Wordpress - function to guarantee correct post format and bug fix Feb 13, 2025
@@ -13,7 +13,7 @@ Tools: ../../generic-credential
"fields" : [
{
"name": "Wordpress Site URL",
"description": "Enter your WordPress site URL in the format: https://example.com. Do not include a trailing slash or suffix like /wp-admin or /wp-json.",
"description": "To get the correct URL, navigate to your WordPress site’s admin dashboard, select the `Settings` tab, and refer to the `Site Address (URL)` field under General Settings.",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The right place to locate Site URL.

@tybalex tybalex marked this pull request as ready for review February 14, 2025 12:11
@cjellick cjellick merged commit c8216ea into obot-platform:main Feb 14, 2025
2 checks passed
@cjellick
Copy link
Contributor

Nice job on the good commit messages and breaking out the changes into separate functional commits. I decided to go ahead and squash them into a single commit, but could have just as easily kept them separate since they were so well formed.

@tybalex tybalex deleted the wordpress-format-hardcheck branch February 19, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants