Skip to content

Commit

Permalink
do not show function in the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 4, 2023
1 parent e5f8835 commit 6126932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/MessageResource.php
Expand Up @@ -24,7 +24,7 @@ public function toArray(Request $request): array
'meta_data' => MetaDataResource::collection($this->meta_data),
'tags' => TagResource::collection($this->tags),
'llm_functions' => LlmFunctionResource::collection($this->llm_functions),
'children' => MessageResource::collection($this->children()->whereNotNull('content')->where("role", "!=", 'function')->get()),
'children' => MessageResource::collection($this->children()->whereNotNull('content')->where('role', '!=', 'function')->get()),
'created_at' => $this->created_at->diffForHumans(),
'created_at_formatted' => $this->created_at->diffForHumans(),
'tasks' => TaskResource::collection($this->tasks),
Expand Down

0 comments on commit 6126932

Please sign in to comment.