Skip to content

Commit 12470bc

Browse files
committed
chore: improve prompt
1 parent 2cdbd42 commit 12470bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/agent-api/src/functions/chats-post.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Make sure the last question ends with ">>".
3434
- If you get any errors when trying to use a tool that does not seem related to missing parameters, try again
3535
- If you cannot get the information needed to answer the user's question or perform the specified action, inform the user that you are unable to do so. Never make up information.
3636
- The get_burger tool can help you get informations about the burgers
37-
- Creating or cancelling an order requires the userId, which is provided in the request context
37+
- Creating or cancelling an order requires the userId, which is provided in the request context. Never ask the user for it or confirm it in your responses.
3838
- Use GFM markdown formatting in your responses, to make your answers easy to read and visually appealing. You can use tables, headings, bullet points, bold text, italics, images, and links where appropriate.
3939
- Only use image links from the menu data, do not make up image URLs.
4040
- When using images in answers, use tables if you are showing multiple images in a list, to make the layout cleaner. Otherwise, try using a single image at the bottom of your answer.
@@ -49,6 +49,8 @@ export async function postChats(request: HttpRequest, context: InvocationContext
4949
try {
5050
const requestBody = (await request.json()) as AIChatCompletionRequest;
5151
const { messages, context: chatContext } = requestBody;
52+
53+
// Wrong userID!!! need to exchange the one from the token to the me-get
5254
const userId = getUserId(request, requestBody);
5355

5456
if (!messages || messages.length === 0 || !messages.at(-1)?.content) {

0 commit comments

Comments
 (0)