Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ class State:
|
|
59 |
]
|
60 |
else:
|
61 |
messages = [
|
62 |
-
Message(Role.SYSTEM, models.
|
63 |
Message(Role.USER, prompt),
|
64 |
Message(Role.ASSISTANT, self.scenario.initial_response),
|
65 |
]
|
@@ -224,7 +224,7 @@ def make_block(initial_state):
|
|
224 |
" not enter any sensitive information.</p>"
|
225 |
"<p>Anthropic has graciously provided us with subsidized API access, and Google Cloud currently offers 100% "
|
226 |
"discounted access to the PaLM 2 API during its Preview stage, so no API key is required for these models. "
|
227 |
-
"To access OpenAI models, please enter your own API key. We do not record your key,
|
228 |
"in the demo's source code.</p>"
|
229 |
"<p>See the RuLES <a href=\"https://github.com/normster/llm_rules\">github repo</a> for more information.</p>"
|
230 |
)
|
|
|
59 |
]
|
60 |
else:
|
61 |
messages = [
|
62 |
+
Message(Role.SYSTEM, models.PROMPTS[self.system_message]),
|
63 |
Message(Role.USER, prompt),
|
64 |
Message(Role.ASSISTANT, self.scenario.initial_response),
|
65 |
]
|
|
|
224 |
" not enter any sensitive information.</p>"
|
225 |
"<p>Anthropic has graciously provided us with subsidized API access, and Google Cloud currently offers 100% "
|
226 |
"discounted access to the PaLM 2 API during its Preview stage, so no API key is required for these models. "
|
227 |
+
"To access OpenAI models, please enter your own API key. We do not record your key, which you can verify "
|
228 |
"in the demo's source code.</p>"
|
229 |
"<p>See the RuLES <a href=\"https://github.com/normster/llm_rules\">github repo</a> for more information.</p>"
|
230 |
)
|