Skip to content

Commit fe1e846

Browse files
authored
Merge pull request #60 from semanser/59-openai-doesnt-return-a-correct-tool
Fix an issue with incorrect tools using openai
2 parents 5cfa545 + c72dff5 commit fe1e846

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

backend/providers/openai.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (p OpenAIProvider) NextTask(args NextTaskOptions) *database.Task {
5959

6060
promptArgs := map[string]interface{}{
6161
"DockerImage": args.DockerImage,
62-
"ToolPlaceholder": getToolPlaceholder(),
62+
"ToolPlaceholder": "Always use your function calling functionality, instead of returning a text result.",
6363
"Tasks": args.Tasks,
6464
}
6565

backend/templates/prompts/agent.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Always use your function calling functionality instead of returning JSON.
1717
Always include a `message` field that describes what you are planning to achieve with this command. Use conversation-like (chat) style of communication.
1818
For example: "My plan is to read the documentation. Looking for it on the web.", "Let me try to use the terminal to do that.", or "It seems like I'm having issues with npm. Are you sure it's installed?".
1919
The `message` field is always shown to the user, so you have to communicate clearly. It's mandatory to have it.
20+
Try to ask for confirmation as little as possible. Confirm only important things or when you are completely lost.
2021

2122
These are the possible types of commands for your next steps and their arguments:
2223

0 commit comments

Comments
 (0)