• Daniel Klein's avatar
    fix: hide setup banner if any custom providers are configured (#1756) · ed2bf680
    Daniel Klein 提交于
    Fixes #1108
    
    ## Summary
    The "Setup AI Access" banner was not being hidden when custom providers
    were configured. This was because the `isAnyProviderSetup()` function
    only checked hardcoded cloud providers and didn't account for custom
    providers.
    
    ## Changes
    Updated `useLanguageModelProviders.ts` to check for configured custom
    providers in addition to the hardcoded cloud providers.
    
    ## Test plan
    - Configure a custom provider without setting up any cloud providers
    - Verify that the "Setup AI Access" banner is now hidden
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Hide the "Setup AI Access" banner when any provider is configured,
    including custom providers. Fixes a logic gap where only hardcoded cloud
    providers were checked.
    
    - **Bug Fixes**
    - Extend isAnyProviderSetup to check custom providers from query data
    (by id).
    - Banner no longer shows when a custom provider is configured without
    cloud providers.
    
    <sup>Written for commit 2ecef7aac52da0b4d43c69fc5d3afb7bafa5706a.
    Summary will update automatically on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    ed2bf680
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
pro 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...