Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small text fixes #1347

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion backend/chainlit/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions backend/chainlit/data/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/chainlit/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions backend/chainlit/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion backend/chainlit/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)


Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/atoms/elements/Plotly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const _PlotlyElement = ({ element }: Props) => {
if (isLoading) {
return <div>Loading...</div>;
} else if (error) {
return <div>An error occured</div>;
return <div>An error occurred</div>;
}

let state;
Expand Down
Loading