mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-02 02:30:07 +00:00
Ruff (#339)
This commit is contained in:
parent
8598f56a83
commit
9a6ec13af6
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class Settings(BaseSettings):
|
||||||
# LLM Configuration #
|
# LLM Configuration #
|
||||||
#####################
|
#####################
|
||||||
# ACTIVE LLM PROVIDER
|
# ACTIVE LLM PROVIDER
|
||||||
LLM_KEY: str = "OPENAI_GPT4o"
|
LLM_KEY: str = "OPENAI_GPT4o"
|
||||||
# COMMON
|
# COMMON
|
||||||
LLM_CONFIG_MAX_TOKENS: int = 4096
|
LLM_CONFIG_MAX_TOKENS: int = 4096
|
||||||
LLM_CONFIG_TEMPERATURE: float = 0
|
LLM_CONFIG_TEMPERATURE: float = 0
|
||||||
|
@ -81,7 +81,6 @@ class Settings(BaseSettings):
|
||||||
AZURE_API_BASE: str | None = None
|
AZURE_API_BASE: str | None = None
|
||||||
AZURE_API_VERSION: str | None = None
|
AZURE_API_VERSION: str | None = None
|
||||||
|
|
||||||
|
|
||||||
def is_cloud_environment(self) -> bool:
|
def is_cloud_environment(self) -> bool:
|
||||||
"""
|
"""
|
||||||
:return: True if env is not local, else False
|
:return: True if env is not local, else False
|
||||||
|
|
|
@ -42,6 +42,7 @@ class LLMConfigRegistry:
|
||||||
|
|
||||||
return cls._configs[llm_key]
|
return cls._configs[llm_key]
|
||||||
|
|
||||||
|
|
||||||
# if none of the LLM providers are enabled, raise an error
|
# if none of the LLM providers are enabled, raise an error
|
||||||
if not any(
|
if not any(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Reference in a new issue