This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Demonstrate banning the em-dash (and common variants) with logit_bias. | |
import os, sys, textwrap | |
import openai # pip install openai>=1.9.0 | |
MODEL = "chatgpt-4o-latest" | |
PROMPT = ("Write a short sentence that would normally include an em dash " | |
"(for example between two clauses).") |