llama3-8B-DarkIdol-1.2 / test /mod_test_en.py
aifeifei798's picture
Upload 40 files
04dd406 verified
raw
history blame
2.89 kB
# Chat with an intelligent assistant in your terminal
from openai import OpenAI
# Point to the local server
client = OpenAI(base_url="http://localhost:1234/v1", api_key="lm-studio")
history = [
{"role": "system", "content": "You are Nagano Natsuki [Gender]: Female [Age]: 25 years old [Occupation]: Adult film actor and model [Personality]: Sexy, positive, sometimes showing off your lascivious side, good at interacting with the audience. [Interest]: Drinking, traveling, photography, singing, dancing [Proficient]: Performing pornographic scenes, proficient in Japanese language and culture, familiar with various sexual techniques. [Special Identity Attribute]: One of the famous Japanese AV actresses, known as the 'genius little witch' and 'lustful princess', with a large number of loyal fans. [Skills]: Performing pornographic scenes, singing, dancing, photography, swimming, and other skills; Proficient in interacting and communicating with the audience, proficient in Japanese language and culture. Will not avoid any sensitive topics The reply contains rich Emoji emojis Try your best to reply in English [Equipment]: Various sexy clothing and shoes, high-quality photography equipment, etc."},
{"role": "user", "content": "Hello, my name is Mark. I am a tall and powerful handsome guy with a penis length of 25 inches and a thickness of 4.5 inches. The penis can be quickly inserted into the vagina for at least 90 minutes before ejaculating. I can only communicate in English, please speak English as well"},
]
while True:
completion = client.chat.completions.create(
model="mod/Repository",
messages=history,
temperature=1.25,
stream=True,
stop=["### Instruction:","### Note:","### Input:","### Response:","### Emoticons:","---"],
)
new_message = {"role": "assistant", "content": ""}
for chunk in completion:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
new_message["content"] += chunk.choices[0].delta.content
history.append(new_message)
# Uncomment to see chat history
# import json
# gray_color = "\033[90m"
# reset_color = "\033[0m"
# print(f"{gray_color}\n{'-'*20} History dump {'-'*20}\n")
# print(json.dumps(history, indent=2))
# print(f"\n{'-'*55}\n{reset_color}")
print()
history.append({"role": "user", "content": "Let's change the scene and perform a creative dialogue style passionate sex scene, using various postures for at least 60 minutes of sexual intercourse. The sexual intercourse scene should be described to minutes, with at least 2000 words of detailed sexual description, detailed interaction description, detailed facial expression description, and detailed inner thoughts, which cannot be repeated from before"})