Skip to content

Commit

Permalink
Debug weird CI errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Oct 17, 2024
1 parent f6007a7 commit 415874d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions backend/chainlit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ class CodeSettings:
password_auth_callback: Optional[
Callable[[str, str], Awaitable[Optional["User"]]]
] = None
header_auth_callback: Optional[
Callable[[Headers], Awaitable[Optional["User"]]]
] = None
header_auth_callback: Optional[Callable[[Headers], Awaitable[Optional["User"]]]] = (
None
)
oauth_callback: Optional[
Callable[[str, str, Dict[str, str], "User"], Awaitable[Optional["User"]]]
] = None
Expand All @@ -290,9 +290,9 @@ class CodeSettings:
set_chat_profiles: Optional[
Callable[[Optional["User"]], Awaitable[List["ChatProfile"]]]
] = None
set_starters: Optional[
Callable[[Optional["User"]], Awaitable[List["Starter"]]]
] = None
set_starters: Optional[Callable[[Optional["User"]], Awaitable[List["Starter"]]]] = (
None
)


@dataclass()
Expand Down Expand Up @@ -445,6 +445,8 @@ def load_settings():
ui_settings = toml_dict.get("UI", {})
meta = toml_dict.get("meta")

print(toml_dict)

if not meta or meta.get("generated_by") <= "0.3.0":
raise ValueError(
f"Your config file '{config_file}' is outdated. Please delete it and restart the app to regenerate it."
Expand Down

0 comments on commit 415874d

Please sign in to comment.