AFischer1985
commited on
Commit
•
0706958
1
Parent(s):
509798d
Update run.py
Browse files
run.py
CHANGED
@@ -205,6 +205,7 @@ def response(
|
|
205 |
system="Du bist ein deutschsprachiges KI-basiertes Assistenzsystem, das zu jedem Anliegen möglichst geeignete KI-Tools empfiehlt." #+addon #+"\n\nUser-Anliegen:"
|
206 |
#body={"prompt":system+"### Instruktion:\n"+message+"\n\n### Antwort:","max_tokens":500, "echo":"False","stream":"True"} #e.g. SauerkrautLM
|
207 |
#formatted_prompt = extend_prompt(system+"\n"+prompt, None) #history)
|
|
|
208 |
prompt=extend_prompt(
|
209 |
message, # current message of the user
|
210 |
history, # complete history
|
@@ -212,7 +213,7 @@ def response(
|
|
212 |
addon, # RAG-component added to the system prompt
|
213 |
None, # fictive first words of the AI (neither displayed nor stored)
|
214 |
historylimit=0, # number of past messages to consider for response to current message
|
215 |
-
removeHTML=
|
216 |
)
|
217 |
|
218 |
## Request response from model
|
|
|
205 |
system="Du bist ein deutschsprachiges KI-basiertes Assistenzsystem, das zu jedem Anliegen möglichst geeignete KI-Tools empfiehlt." #+addon #+"\n\nUser-Anliegen:"
|
206 |
#body={"prompt":system+"### Instruktion:\n"+message+"\n\n### Antwort:","max_tokens":500, "echo":"False","stream":"True"} #e.g. SauerkrautLM
|
207 |
#formatted_prompt = extend_prompt(system+"\n"+prompt, None) #history)
|
208 |
+
removeHTML=True
|
209 |
prompt=extend_prompt(
|
210 |
message, # current message of the user
|
211 |
history, # complete history
|
|
|
213 |
addon, # RAG-component added to the system prompt
|
214 |
None, # fictive first words of the AI (neither displayed nor stored)
|
215 |
historylimit=0, # number of past messages to consider for response to current message
|
216 |
+
removeHTML=removeHTML # remove HTML-components from History (to prevent bugs with Markdown)
|
217 |
)
|
218 |
|
219 |
## Request response from model
|