Closed signebedi closed 1 year ago
[model] extend keyword tokenization to ChatCompletion models Currently, keyword tokenization (and context structuring generally) is limited to Completion models. We should update the context logic to correctly structure ChatCompletion messages:
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
Originally posted by @signebedi in https://github.com/signebedi/gptty/issues/30#issuecomment-1486193866