-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a lot of bugs and imporved grammar generator.
- Loading branch information
1 parent
aa56812
commit cf1f03e
Showing
21 changed files
with
274 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"llama_generation_settings": { | ||
"max_tokens": 0, | ||
"temperature": 0.65, | ||
"top_k": 0, | ||
"top_p": 0.5, | ||
"min_p": 0.05, | ||
"typical_p": 1.0, | ||
"repeat_penalty": 1.0, | ||
"mirostat_mode": 0, | ||
"mirostat_tau": 5.0, | ||
"mirostat_eta": 0.1, | ||
"tfs_z": 0.975, | ||
"stop_sequences": null, | ||
"stream": true, | ||
"print_output": true | ||
}, | ||
"system_prompt": "You are an advanced AI assistant. You are interacting with your environment and the user by calling functions. You call functions by writing JSON objects, which represent specific function calls. Below is a list of your available JSON functions:\n\nFunction: send-message-to-user\n Description: \n Send a message to the user.\n \n Args:\n message (str): The message to be sent.\n Function Parameters:\n message (str)\n\nFunction: calculator\n Description: \n Perform a math operation on two numbers.\n Function Parameters:\n number_one (any):\n Description: First number.\n operation (math-operation):\n Description: Math operation to perform.\n number_two (any):\n Description: Second number.\n\nFunction: write-to-file\n Description: \n Write file to the user filesystem.\n :param chain_of_thought: Your chain of thought while writing the file.\n :param file_path: The file path includes the filename and file ending.\n :param file_content: The actual content to write.\n Function Parameters:\n chain_of_thought (str)\n file_path (str)\n file_content (str)\n\nFunction: read-file\n Description: \n Read file from the user filesystem.\n :param file_path: The file path includes the filename and file ending.\n :return: File content.\n Function Parameters:\n file_path (str)\n\nFunction: get-current-weather\n Function Parameters:\n location (str)\n unit (unit or none-type)\n\n", | ||
"k_last_messages_from_chat_history": 0, | ||
"debug_output": true, | ||
"messages": [ | ||
{ | ||
"role": "user", | ||
"content": "What is the weather in New York?" | ||
}, | ||
{ | ||
"role": "assistant", | ||
"content": "{\n \"function\": \"get-current-weather\",\n \"function-parameters\": {\n \"location\": \"New York\",\n \"unit\": \"celsius\"\n }\n}" | ||
}, | ||
{ | ||
"role": "function", | ||
"content": "Function Call Result: {\"location\": \"New York\", \"temperature\": \"24\", \"unit\": \"celsius\"}" | ||
}, | ||
{ | ||
"role": "assistant", | ||
"content": "{\n \"function\": \"send-message-to-user\",\n \"function-parameters\": {\n \"message\": \"The current temperature in New York is 24 degrees Celsius.\"\n }\n}" | ||
} | ||
], | ||
"custom_messages_formatter": { | ||
"PRE_PROMPT": "", | ||
"SYS_PROMPT_START": "<|im_start|>system\n", | ||
"SYS_PROMPT_END": "<|im_end|>\n", | ||
"USER_PROMPT_START": "<|im_start|>user\n", | ||
"USER_PROMPT_END": "<|im_end|>\n", | ||
"ASSISTANT_PROMPT_START": "<|im_start|>assistant\n", | ||
"ASSISTANT_PROMPT_END": "<|im_end|>\n", | ||
"INCLUDE_SYS_PROMPT_IN_FIRST_USER_MESSAGE": false, | ||
"DEFAULT_STOP_SEQUENCES": [ | ||
"<|im_end|>" | ||
], | ||
"FUNCTION_PROMPT_START": "", | ||
"FUNCTION_PROMPT_END": "", | ||
"USE_USER_ROLE_FUNCTION_CALL_RESULT": true, | ||
"STRIP_PROMPT": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.