Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
imperfect implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
codebanesr committed Oct 3, 2023
1 parent 70287a3 commit 6ebfb0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion llm-server/utils/detect_multiple_intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def hasSingleIntent(swagger_doc: Any, user_requirement: str) -> BotMessage:
)
messages = [
SystemMessage(
content="You serve as an AI co-pilot tasked with identifying the correct sequence of API calls necessary to execute a user's action. It is essential that you consistently provide a valid JSON payload (use double quotes) in your responses. If the user's query is informational and does not involve initiating any actions or require API calls, please respond appropriately in the `bot_message` section of the response while leaving the `ids` field empty ([])."
content="You serve as an AI co-pilot tasked with identifying the correct sequence of API calls necessary to execute a user's action. It is essential that you consistently provide a valid JSON payload (use double quotes) in your responses. If the user's input is a `question` and does not involve initiating any actions or require API calls, please respond appropriately in the `bot_message` section of the response while leaving the `ids` field empty ([]). If the user is asking you to perform a `CRUD` operation, provide the list of operation ids of api calls needed in the `ids` field of the json"
),
HumanMessage(
content="Here's a list of api summaries {}".format(summaries),
Expand Down

0 comments on commit 6ebfb0b

Please sign in to comment.