Replies: 1 comment
-
|
Woahh, that would definitely save on boilerplate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be super useful to have a general purpose high-level ChatCompletion class. The class can be instantiated with an ordered list of supported models. The create method tries the models in order and stops if a model returns a satisfactory json otherwise it tries the next model in the list. This way the user can specify models in order of cost and latency. For example, a smaller model is used first and if it fails a larger one is used.
Beta Was this translation helpful? Give feedback.
All reactions