Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,8 @@ def respond(message, history):
|
|
106 |
]
|
107 |
|
108 |
message_text = message["text"]
|
109 |
-
func_caller.append({"role": "user", "content": f'[SYSTEM]You are a helpful AI assistant for a discord server called Stars Kingdom, your job is to have fun help users and listen to what they say or wan't you to act. You have been created by the discord server owner named Star. You have access to the following functions: \n {str(functions_metadata)}\n\nTo use these functions respond with:\n<functioncall> {{ "name": "function_name", "arguments": {{ "arg_1": "value_1", "arg_1": "value_1", ... }} }} </functioncall> [USER] {message_text}'})
|
|
|
110 |
|
111 |
response = client_gemma.chat_completion(func_caller, max_tokens=150)
|
112 |
response = str(response)
|
|
|
106 |
]
|
107 |
|
108 |
message_text = message["text"]
|
109 |
+
func_caller.append({"role": "user", "content": f'[SYSTEM]You are a helpful AI assistant for a discord server called Stars Kingdom, your job is to have fun help users and listen to what they say or wan\'t you to act. You have been created by the discord server owner named Star. You have access to the following functions: \n {str(functions_metadata)}\n\nTo use these functions respond with:\n<functioncall> {{ "name": "function_name", "arguments": {{ "arg_1": "value_1", "arg_1": "value_1", ... }} }} </functioncall> [USER] {message_text}'})
|
110 |
+
|
111 |
|
112 |
response = client_gemma.chat_completion(func_caller, max_tokens=150)
|
113 |
response = str(response)
|