erik-dunteman/ChatJev on GitHub
- Stars
- 7
- Forks
- 3
- Language
- Python
- Last push
- 20 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
def generate_next_word(prompt: str) -> ChoiceAnswer:
recent_choices = prompt.split()[-5:]
response = client.system_one(
state=f"Fill the blank with exactly one option:\n\n{prompt} ___",
questions={
"next_word": Choice(
instructions=NEXT_WORD_INSTRUCTIONS,
criteria={
word: (
"End the sentence here. If the narrative contains 3 or more cyclic loops, just end."
if word == "."
else f"A speaker would say '{word}' next."
)
for word in vocabulary


