Returns the encoding to use for a model with openai.encode.
This function doesn’t call the API, it computes results locally.
encodingForModel(model)
model
The model name string, for example "gpt-4".
An string describing the encoding.
openai.encodingForModel("gpt-3.5-turbo")
"cl100k_base"
openai.encodingForModel("text-davinci-003")
"p50k_base"