You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What behavior of the library made you think about the improvement?
The interface with OpenAI models is currently different to that with open source models. This can be confusing, and makes it more complicated to switch between the two that it should be.
How would you like it to behave?
I would like to be able to pass an OpenAIAPI instance to generate.continuation, generate.choice, generate.json. We should raise exceptions and warnings where applicable.
How do we do this?
We can use functools.singledispatch and dispatch on the model type by defining a new LogitsGenerator type.
The text was updated successfully, but these errors were encountered:
What behavior of the library made you think about the improvement?
The interface with OpenAI models is currently different to that with open source models. This can be confusing, and makes it more complicated to switch between the two that it should be.
How would you like it to behave?
I would like to be able to pass an
OpenAIAPI
instance togenerate.continuation
,generate.choice
,generate.json
. We should raise exceptions and warnings where applicable.How do we do this?
We can use
functools.singledispatch
and dispatch on the model type by defining a newLogitsGenerator
type.The text was updated successfully, but these errors were encountered: