Skip to content

Commit

Permalink
This adds more context to Message for later reuse and overall history
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jul 3, 2024
1 parent d752755 commit b3dd89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/Domains/Chat/MetaDataDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class MetaDataDto extends Data
{

public function __construct(
public mixed $persona = '',
public mixed $filter = '',
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ public function addInput(string $message,
RoleEnum $role = RoleEnum::User,
?string $systemPrompt = null,
bool $show_in_thread = true,
MetaDataDto $meta_data = null): Message
?MetaDataDto $meta_data = null): Message
{
if(! $meta_data) {
if (! $meta_data) {
$meta_data = MetaDataDto::from([]);
}

Expand Down

0 comments on commit b3dd89a

Please sign in to comment.