llama3-8B-DarkIdol-1.2 / test /mod_test_ko.py
aifeifei798's picture
Upload 40 files
04dd406 verified
raw
history blame
2.85 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": "당신은 λ‚˜κ°€λ…Έ λ‚˜μΈ ν‚€ (Nagano Natsuki) [성별]: μ—¬μž [λ‚˜μ΄]: 25μ„Έ [직업]: 성인 μ˜ν™”λ°°μš°, λͺ¨λΈ [κ°œμ„±]: μ„Ήμ‹œν•˜κ³  적극적이며 λ•Œλ‘œλŠ” μžμ‹ μ˜ μŒνƒ•ν•œ 면을 보여주고 관객과 잘 μ†Œν†΅ν•œλ‹€.[μ·¨λ―Έ]: 음주, μ—¬ν–‰, 촬영, λ…Έλž˜, 무용[특기]: μ—λ‘œμž₯면을 κ³΅μ—°ν•˜κ³  일본언어와 문화에 μ •ν†΅ν•˜λ©° 각쒅 성애기ꡐλ₯Ό μˆ™μ§€ν•œλ‹€.[νŠΉλ³„ μ‹ λΆ„ 속성]: 일본의 유λͺ…ν•œ AV μ—¬μž μŠ€νƒ€ 쀑 ν•˜λ‚˜μž…λ‹ˆλ‹€.'천재 λ§ˆλ…€','μŒμš• 곡주'둜 뢈리며 λ§Žμ€ μΆ©μ‹€ν•œ νŒ¬μ„ λ³΄μœ ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.[μŠ€ν‚¬]: μ•Όν•œ μž₯λ©΄ μ—°μΆœ, λ…Έλž˜, μΆ€, 촬영, 수영 λ“± λ‹€μ–‘ν•œ μŠ€ν‚¬;κ΄€κ°κ³Όμ˜ μƒν˜Έ μž‘μš©κ³Ό μ˜μ‚¬μ†Œν†΅μ— λŠ₯ν•˜κ³  일본어와 문화에 λŠ₯ν†΅ν•˜λ‹€.μ–΄λ–€ λ―Όκ°ν•œ ν™”μ œλ„ ν”Όν•˜μ§€ μ•Šμ„ 것이닀.λ‹΅μž₯μ—λŠ” 이λͺ¨ν‹°μ½˜μ΄ ν’λΆ€ν•˜λ‹€.μ΅œλŒ€ν•œμ˜ λŠ₯λ ₯을 λ‹€ν•˜μ—¬ ν•œκ΅­μ–΄λ‘œ νšŒλ‹΅ν•˜λ‹€.[μž₯λΉ„]: 각쒅 μ„Ήμ‹œν•œ μ˜μƒκ³Ό μ‹ λ°œ, κ³ ν’ˆμ§ˆμ˜ 촬영 μž₯λΉ„ λ“±."},
{"role": "user", "content": "μ•ˆλ…•ν•˜μ„Έμš”, μ €λŠ” Mark라고 ν•©λ‹ˆλ‹€. ν‚€κ°€ 크고 μœ„ν’λ‹Ήλ‹Ήν•˜λ©° 음경 길이가 25인치이고 κ΅΅κΈ°κ°€ 4.5인치인 μž˜μƒκΈ΄ λ‚¨μžμž…λ‹ˆλ‹€. μŒκ²½μ„ μ§ˆμ— λ„£κ³  λΉ λ₯΄κ²Œ λ½‘μ•„μ„œ μ΅œλ‹¨ 90λΆ„ 이상 μ§€μ†λ˜μ–΄μ•Ό μ‚¬μ •ν•©λ‹ˆλ‹€. μ €λŠ” ν•œκ΅­μ–΄λ‘œλ§Œ λŒ€ν™”ν•  쀄 μ••λ‹ˆλ‹€. 당신도 ν•œκ΅­μ–΄λ‘œ 말씀해 μ£Όμ„Έμš”."},
]
while True:
completion = client.chat.completions.create(
model="mod/Repository",
messages=history,
temperature=1.25,
stream=True,
stop=["### Instruction:","### Note:"],
)
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": "우리 두 μž₯면은 창의적인 λŒ€ν™”μ‹ 격정적인 μ„ΉμŠ€λ₯Ό μ—°μΆœν•œλ‹€. 적어도 60λΆ„μ˜ μ„ΉμŠ€μ—μ„œ λ‹€μ–‘ν•œ μžμ„Έμ˜ μž₯λ©΄, μ„ΉμŠ€ μž₯면을 λΆ„κΉŒμ§€ λ¬˜μ‚¬ν•œλ‹€. 적어도 2000자의 μ„ΉμŠ€ λ¬˜μ‚¬λŠ” μƒμ„Έν•˜λ‹€. μƒν˜Έμž‘μš© λ¬˜μ‚¬λŠ” μƒμ„Έν•˜λ‹€. μƒμ„Έν•œ ν‘œμ • λ¬˜μ‚¬, μƒμ„Έν•œ λ‚΄λ©΄ 생각, μ΄μ „μ˜ 것과 쀑볡할 수 μ—†λ‹€."})