Problem/Motivation

Extend module functionality with Chat Augmentor

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mostepaniukvm created an issue. See original summary.

mostepaniukvm’s picture

Status: Active » Needs review

Moved a bit of code to base class and added Chat Augmentor implementation.

j-barnes’s picture

@mostepaniukvm - Looks great, going to give this a try. Thanks for the MR.

j-barnes’s picture

@mostepaniukvm - What are your thoughts on adding a role field and also incorporating the prompt replacement {input} similar to how the other augmentor behaves.

https://git.drupalcode.org/project/augmentor_chatgpt/-/blob/1.0.x/src/Pl...

  if ($role == 'user') {
    $content = str_replace('{input}', '"' . addslashes($input) . '"', $this->configuration['prompt']);
  }
}
mostepaniukvm’s picture

Yes, it totally makes sense, pushed additional commit

j-barnes’s picture

Added a couple minor tweaks, but tested and this is working great! Going to have some internal team members QA this and we should be good to merge. Thanks again for the contribution!

sunny-lee’s picture

Category: Feature request » Task
Status: Needs review » Reviewed & tested by the community

Working great! Short list of what was checked, have it enabled for pages:
- No issues changing the model through ECA
- Basic pages working no errors
- Pages with views no errors
- Pages with blocks and views no errors
- Generate button we have works, no errors
- Only able to test and see user role and it works well

j-barnes’s picture

j-barnes’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.