Skip to content
Snippets Groups Projects

Resolve #3450380 "Misspelled property triggers"

6 files
+ 14
14
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -99,8 +99,8 @@ class Chat extends OpenAIActionBase {
* {@inheritdoc}
*/
public function execute() {
$token_value = $this->tokenServices->getTokenData($this->configuration['token_input']);
$prompt = $this->tokenServices->replace($this->configuration['prompt'], [$this->configuration['token_input'] => $token_value->getValue()]);
$token_value = $this->tokenService->getTokenData($this->configuration['token_input']);
$prompt = $this->tokenService->replace($this->configuration['prompt'], [$this->configuration['token_input'] => $token_value->getValue()]);
$messages = [
['role' => 'system', 'content' => $this->configuration['system']],
@@ -114,7 +114,7 @@ class Chat extends OpenAIActionBase {
(int) $this->configuration['max_tokens']
);
$this->tokenServices->addTokenData($this->configuration['token_result'], $response);
$this->tokenService->addTokenData($this->configuration['token_result'], $response);
}
}
Loading