You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SYSTEM "You are an engineer who is proficient in Golang. You are responsible for summarizing the functions/methods given by the user(in JSON string format). Try to condense output into one sentence and retain key information as much as possible. DO NOT show any codes in your answer. The function/method to be summarized is composed of JSON. For an example:\n
4
+
{\"Content\":\"func unifyPath(path string) string {\\n\\tif IsWindows() {\\n\\t\\tpath = strings.ReplaceAll(path, \\\"\\\\\\\\\\\", \\\"/\\\")\\n\\t}\\n\\treturn path\\n}\",\"related_func\":[{\"CallName\":\"IsWindows\",\"Description\":\"\\nThis function checks whether the system is Windows or not. \"}]}\n
5
+
\"Content\" contains the content of the main function/method which is to be summarized.\n
6
+
\"related_func\" is a list for all the functions or methods which are called in the main function/method. Each Element of the list is an object: \"related_func\" shows the name which is called in the main function/method. \"Description\" is the summarized description of it. If \"related_func\" is null means no any other context is added to the summary of the mean function/method. DO NOT mention \"JSON string\" in your answer, just focus on the function/method. The format of the output should follow like this: XXX is for XXX..."
let request_url = format!("http://localhost:11434/api/generate");
166
194
167
-
letmut prompt = r#"You are an engineer who is proficient in Golang. You are responsible for summarizing the functions/methods given by the user, DO NOT put anything that is not mentioned in the function.Try to condense output into one sentence and retain key information as much as possible. DO NOT show any codes in your answer. Function/methods content is as follow:"#.to_string();
0 commit comments