Previously, the "thinking" indicator and loading icon would only disappear after the entire message generation was complete, which created a poor user experience where users had to wait for the full response to see that the reasoning phase had finished. Changes made: - Add `isThinkingComplete` field to independently track reasoning state - Update streaming logic to mark thinking complete when content starts flowing - Detect closed `<think>` tags to mark reasoning completion - Modify MessageContent component to use independent thinking state - Update "思考中..." text and loading icon display conditions - Ensure thinking state is properly set in all completion scenarios (non-stream, errors, manual stop) Now the thinking section immediately shows as complete when reasoning ends, rather than waiting for the entire message to finish, providing much better real-time feedback to users. Files modified: - web/src/hooks/useApiRequest.js - web/src/components/playground/MessageContent.js - web/src/utils/messageUtils.js
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| custom | Loading commit data... | |
| playground | Loading commit data... | |
| AuthRedirect.js | Loading commit data... | |
| ChannelsTable.js | Loading commit data... | |
| Footer.js | Loading commit data... | |
| HeaderBar.js | Loading commit data... | |
| LinuxDoIcon.js | Loading commit data... | |
| Loading.js | Loading commit data... | |
| LoginForm.js | Loading commit data... | |
| LogsTable.js | Loading commit data... | |
| MjLogsTable.js | Loading commit data... | |
| ModelPricing.js | Loading commit data... | |
| ModelSetting.js | Loading commit data... | |
| NoticeModal.js | Loading commit data... | |
| OAuth2Callback.js | Loading commit data... | |
| OIDCIcon.js | Loading commit data... | |
| OperationSetting.js | Loading commit data... | |
| OtherSetting.js | Loading commit data... | |
| PageLayout.js | Loading commit data... | |
| PasswordResetConfirm.js | Loading commit data... | |
| PasswordResetForm.js | Loading commit data... | |
| PersonalSetting.js | Loading commit data... | |
| PrivateRoute.js | Loading commit data... | |
| RateLimitSetting.js | Loading commit data... | |
| RedemptionsTable.js | Loading commit data... | |
| RegisterForm.js | Loading commit data... | |
| SetupCheck.js | Loading commit data... | |
| SiderBar.js | Loading commit data... | |
| SystemSetting.js | Loading commit data... | |
| TaskLogsTable.js | Loading commit data... | |
| TokensTable.js | Loading commit data... | |
| UsersTable.js | Loading commit data... | |
| WeChatIcon.js | Loading commit data... | |
| fetchTokenKeys.js | Loading commit data... | |
| utils.js | Loading commit data... |