saved state in dashboard error

Former-commit-id: 97aa8bc3a0
jojo-group-chat
Kye 1 year ago
parent 690433d39f
commit 0f81159e68

@ -1,6 +1,6 @@
from swarms.models.openai_models import OpenAIChat from swarms.models.openai_models import OpenAIChat
openai = OpenAIChat(openai_api_key="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", verbose=False) openai = OpenAIChat(openai_api_key="", verbose=False)
chat = openai("What are quantum fields?") chat = openai("What are quantum fields?")
print(chat) print(chat)

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "1.9.6" version = "1.9.9"
description = "Swarms - Pytorch" description = "Swarms - Pytorch"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"] authors = ["Kye Gomez <kye@apac.ai>"]

@ -16,8 +16,8 @@ from swarms.models.kosmos_two import Kosmos
from swarms.models.vilt import Vilt from swarms.models.vilt import Vilt
from swarms.models.nougat import Nougat from swarms.models.nougat import Nougat
from swarms.models.layoutlm_document_qa import LayoutLMDocumentQA from swarms.models.layoutlm_document_qa import LayoutLMDocumentQA
from swarms.models.gpt4v import GPT4Vision # from swarms.models.gpt4v import GPT4Vision
from swarms.models.dalle3 import Dalle3 # from swarms.models.dalle3 import Dalle3
# from swarms.models.distilled_whisperx import DistilWhisperModel # from swarms.models.distilled_whisperx import DistilWhisperModel
@ -45,6 +45,6 @@ __all__ = [
"HuggingfaceLLM", "HuggingfaceLLM",
"MPT7B", "MPT7B",
"WizardLLMStoryTeller", "WizardLLMStoryTeller",
"GPT4Vision", # "GPT4Vision",
"Dalle3", # "Dalle3",
] ]

@ -12,7 +12,7 @@ from termcolor import colored
load_dotenv() load_dotenv()
api_key = os.getenv("OPENAI_API_KEY") # api_key = os.getenv("OPENAI_API_KEY")
# Configure Logging # Configure Logging
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
@ -49,6 +49,7 @@ class Dalle3:
size: str = "1024x1024" size: str = "1024x1024"
max_retries: int = 3 max_retries: int = 3
quality: str = "standard" quality: str = "standard"
api_key: str = None
n: int = 4 n: int = 4
client = OpenAI( client = OpenAI(
api_key=api_key, api_key=api_key,

@ -73,7 +73,7 @@ class GPT4Vision:
model: str = "gpt-4-vision-preview" model: str = "gpt-4-vision-preview"
backoff_factor: float = 2.0 backoff_factor: float = 2.0
timeout_seconds: int = 10 timeout_seconds: int = 10
api_key: Optional[str] = None or os.getenv("OPENAI_API_KEY") api_key: Optional[str] = None
# 'Low' or 'High' for respesctively fast or high quality, but high more token usage # 'Low' or 'High' for respesctively fast or high quality, but high more token usage
quality: str = "low" quality: str = "low"
# Max tokens to use for the API request, the maximum might be 3,000 but we don't know # Max tokens to use for the API request, the maximum might be 3,000 but we don't know

@ -217,7 +217,7 @@ class Flow:
Dashboard: {self.dashboard} Dashboard: {self.dashboard}
Dynamic Temperature: {self.dynamic_temperature} Dynamic Temperature: {self.dynamic_temperature}
Autosave: {self.autosave} Autosave: {self.autosave}
Saved State: {self.saved_state} Saved State: {self.saved_state_path}
---------------------------------------- ----------------------------------------
""", """,

Loading…
Cancel
Save