Update onboarding and error handling experience (#29)

This commit is contained in:
AceDataCloud committed 2024-01-03 16:40:24 +08:00
1 parent 916df4b482
commit 9c54ffb7a8
23 files changed
+228 -43

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ export interface IChatMessageContentItem {
export interface IChatMessage {
state?: IChatMessageState;
content: string | IChatMessageContentItem[];
content?: string | IChatMessageContentItem[];
role?: typeof ROLE_SYSTEM | typeof ROLE_ASSISTANT | typeof ROLE_USER;
error?: IError;
}
+1 -1
View File
@@ -15,7 +15,7 @@ const httpClient: AxiosInstance = axios.create({
});
httpClient.interceptors.request.use((config) => {
const accessToken = store.state.token?.access;
const accessToken = store.getters.token?.access;
if (accessToken) {
config.headers['Authorization'] = `Bearer ${accessToken}`;
}