diff --git a/README.md b/README.md index acf0a0a27f..4c271bce7e 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ $ chainlit run demo.py -w Full documentation is available [here](https://docs.chainlit.io). Key features: - [💬 Multi Modal chats](https://docs.chainlit.io/advanced-features/multi-modal) -- [💭 Chain of Thought visualisation](https://docs.chainlit.io/concepts/step) +- [💭 Chain of Thought visualization](https://docs.chainlit.io/concepts/step) - [💾 Data persistence + human feedback](https://docs.chainlit.io/data-persistence/overview) - [🐛 Debug Mode](https://docs.chainlit.io/data-persistence/enterprise#debug-mode) - [👤 Authentication](https://docs.chainlit.io/authentication/overview) diff --git a/backend/chainlit/cli/__init__.py b/backend/chainlit/cli/__init__.py index 0985622a29..234b7befb6 100644 --- a/backend/chainlit/cli/__init__.py +++ b/backend/chainlit/cli/__init__.py @@ -183,7 +183,7 @@ def chainlit_run( no_cache = True # This is required to have OpenAI LLM providers available for the CI run os.environ["OPENAI_API_KEY"] = "sk-FAKE-OPENAI-API-KEY" - # This is required for authenticationt tests + # This is required for authentication tests os.environ["CHAINLIT_AUTH_SECRET"] = "SUPER_SECRET" else: trace_event("chainlit run") diff --git a/backend/chainlit/data/dynamodb.py b/backend/chainlit/data/dynamodb.py index ec0f1418fa..dbca89cff5 100644 --- a/backend/chainlit/data/dynamodb.py +++ b/backend/chainlit/data/dynamodb.py @@ -173,11 +173,11 @@ async def upsert_feedback(self, feedback: Feedback) -> str: if not feedback.forId: raise ValueError( - "DynamoDB datalayer expects value for feedback.threadId got None" + "DynamoDB data layer expects value for feedback.threadId got None" ) feedback.id = f"THREAD#{feedback.threadId}::STEP#{feedback.forId}" - searialized_feedback = self._type_serializer.serialize(asdict(feedback)) + serialized_feedback = self._type_serializer.serialize(asdict(feedback)) self.client.update_item( TableName=self.table_name, @@ -187,7 +187,7 @@ async def upsert_feedback(self, feedback: Feedback) -> str: }, UpdateExpression="SET #feedback = :feedback", ExpressionAttributeNames={"#feedback": "feedback"}, - ExpressionAttributeValues={":feedback": searialized_feedback}, + ExpressionAttributeValues={":feedback": serialized_feedback}, ) return feedback.id diff --git a/backend/chainlit/element.py b/backend/chainlit/element.py index 3ecf8bb932..3b58b38714 100644 --- a/backend/chainlit/element.py +++ b/backend/chainlit/element.py @@ -65,7 +65,7 @@ class Element: id: str = Field(default_factory=lambda: str(uuid.uuid4())) # The key of the element hosted on Chainlit. chainlit_key: Optional[str] = None - # The URL of the element if already hosted somehwere else. + # The URL of the element if already hosted somewhere else. url: Optional[str] = None # The S3 object key. object_key: Optional[str] = None diff --git a/backend/chainlit/session.py b/backend/chainlit/session.py index f73a635558..038b1bf4b9 100644 --- a/backend/chainlit/session.py +++ b/backend/chainlit/session.py @@ -64,7 +64,7 @@ def __init__( client_type: ClientType, # Thread id thread_id: Optional[str], - # Logged-in user informations + # Logged-in user information user: Optional[Union["User", "PersistedUser"]], # Logged-in user token token: Optional[str], @@ -169,7 +169,7 @@ def __init__( client_type: ClientType, # Thread id thread_id: Optional[str] = None, - # Logged-in user informations + # Logged-in user information user: Optional[Union["User", "PersistedUser"]] = None, # Logged-in user token token: Optional[str] = None, @@ -225,7 +225,7 @@ def __init__( client_type: ClientType, # Thread id thread_id: Optional[str] = None, - # Logged-in user informations + # Logged-in user information user: Optional[Union["User", "PersistedUser"]] = None, # Logged-in user token token: Optional[str] = None, diff --git a/backend/chainlit/socket.py b/backend/chainlit/socket.py index f2979e9e21..0fa936c042 100644 --- a/backend/chainlit/socket.py +++ b/backend/chainlit/socket.py @@ -392,7 +392,7 @@ async def call_action(sid, action): except Exception as e: logger.exception(e) await context.emitter.send_action_response( - id=action.id, status=False, response="An error occured" + id=action.id, status=False, response="An error occurred" ) diff --git a/frontend/src/components/atoms/elements/Plotly.tsx b/frontend/src/components/atoms/elements/Plotly.tsx index 8a206a1c62..e0a1054110 100644 --- a/frontend/src/components/atoms/elements/Plotly.tsx +++ b/frontend/src/components/atoms/elements/Plotly.tsx @@ -18,7 +18,7 @@ const _PlotlyElement = ({ element }: Props) => { if (isLoading) { return
Loading...
; } else if (error) { - return
An error occured
; + return
An error occurred
; } let state;