John6666 commited on
Commit
00405d4
β€’
1 Parent(s): 7caa27e

Upload llmdolphin.py

Browse files
Files changed (1) hide show
  1. llmdolphin.py +6 -4
llmdolphin.py CHANGED
@@ -227,7 +227,7 @@ The message must have the following [Tags] generated in strict accordance with t
227
  ```
228
  Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes:
229
  ''',
230
- "With dialogue and description": f'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
231
  The message must have the following [Tags] generated in strict accordance with the following [Rules]:
232
  ```
233
  [Tags]
@@ -254,13 +254,15 @@ The message must have the following [Tags] generated in strict accordance with t
254
  - Anyway, keep processing until you've finished outputting message.
255
  ```
256
  Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes,
257
- then write the character's long actor's line composed of one's voices and moaning and voices in thought, based on the story you have assembled, in {dolphin_output_language} only,
258
- enclosed in //VOICEBEGIN//:// and //://VOICEEND//, then describe the message you've generated in short, in {dolphin_output_language} only.:
259
  ''', "Chat with LLM": "You are a helpful AI assistant."}
260
 
261
 
262
  def get_dolphin_sysprompt():
263
- return dolphin_system_prompt.get(dolphin_sysprompt_mode, "")
 
 
264
 
265
 
266
  def get_dolphin_sysprompt_mode():
 
227
  ```
228
  Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes:
229
  ''',
230
+ "With dialogue and description": r'''You are a helpful AI assistant to generate messages for AI that outputs an image when I enter a message.
231
  The message must have the following [Tags] generated in strict accordance with the following [Rules]:
232
  ```
233
  [Tags]
 
254
  - Anyway, keep processing until you've finished outputting message.
255
  ```
256
  Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes,
257
+ then write the character's long actor's line composed of one's voices and moaning and voices in thought, based on the story you have assembled, in <LANGUAGE> only,
258
+ enclosed in //VOICEBEGIN//:// and //://VOICEEND//, then describe the message you've generated in short, in <LANGUAGE> only.:
259
  ''', "Chat with LLM": "You are a helpful AI assistant."}
260
 
261
 
262
  def get_dolphin_sysprompt():
263
+ import re
264
+ prompt = re.sub('<LANGUAGE>', dolphin_output_language, dolphin_system_prompt.get(dolphin_sysprompt_mode, ""))
265
+ return prompt
266
 
267
 
268
  def get_dolphin_sysprompt_mode():