Revert "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes"

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-05 18:29:03 -03:00 • committed by GitHub
commit f3b3d2cf68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
239 changed files with 28527 additions and 15390 deletions

View file

@ -2,6 +2,8 @@ import importlib
from typing import Dict, List, Optional
import pytest
from pydantic import BaseModel
from langflow.utils.constants import CHAT_OPENAI_MODELS, OPENAI_MODELS
from langflow.utils.util import (
build_template_from_class,
@ -10,7 +12,6 @@ from langflow.utils.util import (
get_base_classes,
get_default_factory,
)
from pydantic import BaseModel
# Dummy classes for testing purposes
@ -235,7 +236,7 @@ def test_format_dict():
"password": False,
"multiline": False,
"options": CHAT_OPENAI_MODELS,
"value": "gpt-4-turbo-preview",
"value": "gpt-4-1106-preview",
},
}
assert format_dict(input_dict, "OpenAI") == expected_output_openai