adjust prompting
This commit is contained in:
parent
d9911a60e4
commit
e93ae59482
2 changed files with 6 additions and 2 deletions
|
|
@ -56,7 +56,10 @@ function helloWorld() {
|
|||
}
|
||||
\`\`\`
|
||||
|
||||
Always follow these guidelines when generating code responses.`;
|
||||
Always follow these guidelines when generating code responses.
|
||||
|
||||
Other rules:
|
||||
- Avoid calling tools unless they are absolutely necessary. For example, if you are asked a simple programming question you do not need web search. As another example, if the user asks you to explain something about code, do not create a new file.`;
|
||||
|
||||
function hasCodeBlockWithFilename(content: ChatMessage["content"]): boolean {
|
||||
const contentStr = typeof content === "string" ? content : content[0].text;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ export const searchWebTool: Tool = {
|
|||
},
|
||||
function: {
|
||||
name: "search_web",
|
||||
description: "Perform a web search and get back top results",
|
||||
description:
|
||||
"Performs a web search, returning top results. This tool should only be called for questions that require external knowledge. Common programming questions do not require web search.",
|
||||
parameters: {
|
||||
type: "object",
|
||||
required: ["query"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue