From 13fc92db928a8a27075bf3aa4722f7ece09663b4 Mon Sep 17 00:00:00 2001 From: Casmo Date: Fri, 17 Nov 2023 13:32:06 +0000 Subject: [PATCH] Fix styling --- src/Engines/OpenAiEngine.php | 4 ++-- src/Gptable.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Engines/OpenAiEngine.php b/src/Engines/OpenAiEngine.php index 648d633..a4e1c01 100644 --- a/src/Engines/OpenAiEngine.php +++ b/src/Engines/OpenAiEngine.php @@ -61,14 +61,14 @@ private function saveObjects($objects) foreach ($objects as $object) { $embed = $this->embed($object['content']); - + DB::connection(config('gpt.database.connection')) ->table(config('gpt.database.table')) ->updateOrInsert([ 'foreign_id' => $object['objectID'], ], [ 'content' => $object['content'], - 'embedding' => '['. implode(',', $embed) .']', + 'embedding' => '['.implode(',', $embed).']', ]); } } diff --git a/src/Gptable.php b/src/Gptable.php index ca23908..7a2550a 100755 --- a/src/Gptable.php +++ b/src/Gptable.php @@ -261,7 +261,7 @@ public function gptableAs() */ public function toGptableString() { - return strip_tags(implode(', ', $this->contentable->toArray()) . implode(', ', $this->toArray())); + return strip_tags(implode(', ', $this->contentable->toArray()).implode(', ', $this->toArray())); } /**