fix: allow local Gemma runtime on GitHub Pages and avoid OPFS cache finalize read errors

This commit is contained in:
Xiaohan-Tian
2026-05-15 13:04:36 -07:00
parent b2bbc08761
commit e243f9e2ca
5 changed files with 23 additions and 47 deletions
@@ -234,7 +234,6 @@ const GeneralSettings: React.FC = () => {
const localRuntimeMessage = localModelState.runtimeSupport.reason;
const hasLocalRuntimeHardFailure = !localModelState.runtimeSupport.supported;
const hasLocalRuntimeWarning = localModelState.runtimeSupport.supported && !!localRuntimeMessage;
// NOTE: Gemini and Claude are not supported yet due to CORS issues.
return (
@@ -286,12 +285,6 @@ const GeneralSettings: React.FC = () => {
<div className="settings-group">
<h4>{LOCAL_LLM_DISPLAY_NAME} Local Runtime</h4>
{hasLocalRuntimeWarning && (
<div className="settings-help" style={{ fontSize: '12px', color: '#d0a56b', marginTop: '4px', marginBottom: '8px' }}>
{localRuntimeMessage}
</div>
)}
{hasLocalRuntimeHardFailure && (
<div className="settings-help" style={{ fontSize: '12px', color: '#d45a5a', marginTop: '4px', marginBottom: '8px' }}>
{localRuntimeMessage}