Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vinid committed Oct 6, 2024
1 parent 33d9051 commit fd456dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion textgrad/engine_experimental/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class EngineLM(ABC):
def __init__(self, model_string: str,
system_prompt: str = "You are a helpful, creative, and smart assistant.",
is_multimodal: bool = False,
cache=Union[dc.Cache, bool]):
cache: Union[dc.Cache, bool] = False):

"""
Base class for the engines.
Expand Down
4 changes: 2 additions & 2 deletions textgrad/engine_experimental/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class OpenAIEngine(EngineLM):
def __init__(self, model_string: str,
system_prompt: str = DEFAULT_SYSTEM_PROMPT,
is_multimodal: bool = False,
cache=Union[dc.Cache, bool]):
cache: Union[dc.Cache, bool] = False):

self.validate()

Expand Down Expand Up @@ -92,7 +92,7 @@ def __init__(self,
model_string: str,
system_prompt: str = DEFAULT_SYSTEM_PROMPT,
is_multimodal: bool = False,
cache=Union[dc.Cache, bool]):
cache: Union[dc.Cache, bool] = False):

self.client = client

Expand Down

0 comments on commit fd456dd

Please sign in to comment.