Refactor OpenAI provider in simplemind

Update the DEFAULT_MAX_TOKENS and DEFAULT_KWARGS variables in the OpenAI provider module in simplemind. Set DEFAULT_MAX_TOKENS to None and DEFAULT_KWARGS to an empty dictionary. This refactor allows for more flexibility in configuring the OpenAI provider.
This commit is contained in:
2024-11-06 13:00:39 -05:00
parent 309f390800
commit 91af281a9d
+2 -2
View File
@@ -15,8 +15,8 @@ T = TypeVar("T", bound=BaseModel)
PROVIDER_NAME = "openai"
DEFAULT_MODEL = "gpt-4o-mini"
DEFAULT_MAX_TOKENS = 1_000
DEFAULT_KWARGS = {"max_tokens": DEFAULT_MAX_TOKENS}
DEFAULT_MAX_TOKENS = None
DEFAULT_KWARGS = {}
class OpenAI(BaseProvider):