Skip to content

Commit

Permalink
docs: clarify config model[_].name and add multiline prompt examples
Browse files Browse the repository at this point in the history
Based on feedback from #2
  • Loading branch information
Contextualist committed Feb 6, 2024
1 parent d10a59a commit 6ada69e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ data_dir = "./data"
sample = 8

[[model]]
# Entries other than `name` are passed to `openai.OpenAI` or `openai.OpenAI.chat.completion.create`
# Internal identifier for your own record. Used when storing and presenting the results.
name = "chatglm3-6b-sft-checkpoint100"
# Entries other than `name` are passed to `openai.OpenAI` or `openai.OpenAI.chat.completion.create`
base_url = "http://localhost:8000/v1"
api_key = "dummy-key"
max_retries = 1
model = ""
model = "dummy-model-name"

[[model]]
name = "gpt-3.5"
Expand All @@ -20,14 +21,18 @@ model = "gpt-3.5-turbo"
name = "demo-sleep-zh"
chat = """
user: 睡不着怎么办?
assistant: 你可以试试给我讲个故事呀。
assistant: 你可以……
(略作沉思)
试试给我讲个故事呀。
user: 诶嘿,那你想听什么样的故事呢?
"""

[[prompt]]
name = "demo-sleep-en"
chat = """
user: What should I do if I can't fall asleep?
assistant: Hmmm, maybe you can try telling me a story.
assistant: Hmmm, maybe...
*pondering*
you can try telling me a story.
user: lol, what kind of story do you like?
"""

0 comments on commit 6ada69e

Please sign in to comment.