Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,8 @@ import google.generativeai as genai
|
|
15 |
def request_to_v2(message, api_keys, context=[]):
|
16 |
context = [message]
|
17 |
|
|
|
|
|
18 |
## 加入API_keys
|
19 |
genai.configure(api_key=api_keys)
|
20 |
|
|
|
15 |
def request_to_v2(message, api_keys, context=[]):
|
16 |
context = [message]
|
17 |
|
18 |
+
message = message.replace("\n","##")
|
19 |
+
|
20 |
## 加入API_keys
|
21 |
genai.configure(api_key=api_keys)
|
22 |
|