Merge remote-tracking branch 'origin/dev' into fix/minor_bugs

This commit is contained in:
Lucas Oliveira 2024-06-02 23:00:27 -03:00
commit 6e5530336c
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ models = list_models()
# Or configure a HfApi client
hf_api = HfApi(
endpoint="https://huggingface.co", # Can be a Private Hub endpoint.
token=os.getenv("HUGGINFACE_API_TOKEN") or "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",
token=os.getenv("HUGGINFACE_API_TOKEN"),
)
space_runtime = hf_api.restart_space("Langflow/Langflow-Preview", factory_reboot=True)

View file

@ -78,7 +78,7 @@ class OpenAIModelComponent(LCModelComponent):
self,
input_value: Text,
openai_api_key: str,
temperature: float,
temperature: Optional[float] = 0.1,
model_name: str = "gpt-4o",
max_tokens: Optional[int] = 256,
model_kwargs: NestedDict = {},