Skip to content

Commit

Permalink
chore: update database tool names
Browse files Browse the repository at this point in the history
Depends on obot-platform/tools#334
Addresses part of #1208

Signed-off-by: Nick Hale <[email protected]>
  • Loading branch information
njhale committed Jan 10, 2025
1 parent 1f4b97b commit 4fb506e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/handlers/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (t *TableHandler) tables(req api.Context, workspaceID string) (string, erro
if err := req.Get(&toolRef, "database"); err != nil {
return "", err
}
run, err := t.gptScript.Run(req.Context(), "Tables from "+toolRef.Status.Reference, gptscript.Options{
run, err := t.gptScript.Run(req.Context(), "List Tables from "+toolRef.Status.Reference, gptscript.Options{
Workspace: workspaceID,
})
if err != nil {
Expand All @@ -47,7 +47,7 @@ func (t *TableHandler) rows(req api.Context, workspaceID, tableName string) (str
if err != nil {
return "", err
}
run, err := t.gptScript.Run(req.Context(), "Query from "+toolRef.Status.Reference, gptscript.Options{
run, err := t.gptScript.Run(req.Context(), "Run Query from "+toolRef.Status.Reference, gptscript.Options{
Input: string(input),
Workspace: workspaceID,
})
Expand Down

0 comments on commit 4fb506e

Please sign in to comment.