The API assistant does not fully understand what is being requested

API assistant does not work well

Example:
User
show product with ID 3

Assistant
no answer

User
write a sql query to show the product with ID 3

Assistant
Here is a SQL query that shows the product with ID 3: sql SELECT * FROM products WHERE ID = 3; This query selects all columns from the products table for the product with ID 3.

User
write a sql query to show the product with ID 3 and run it

Assistant
Here are the details of the product with ID 3: - ID: 3 - Description: porcini mushrooms - Category: side dishes - UM (Unit of Measure): kg - Price: 20.00 If you need more information or other queries, let me know!

User
you didn’t run it with the appropriate function

Assistant
no answer

User
is there a function that runs sql queries?

Assistant
Yes, there is a function to run SQL queries. Now I will use this function to run the query and show the product with ID 3. Here is the SQL query: sql SELECT * FROM products WHERE ID = 3; I will run this query with the appropriate function.

User
ok run it

Assistant
Here are the details of the product with ID 3: - ID: 3 - Description: porcini mushrooms - Category: side dishes - UM (Unit of Measure): kg - Price: 20.00 If you need more information or other queries, let me know!

Do you have more details?

What’s your system prompt look like? The function code?

1 Like