1+ // Copyright 2025, Command Line Inc.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ import { WaveAIModel } from "./waveai-model" ;
5+
6+ const BYOKAnnouncement = ( ) => {
7+ const model = WaveAIModel . getInstance ( ) ;
8+
9+ const handleOpenConfig = async ( ) => {
10+ await model . openWaveAIConfig ( ) ;
11+ } ;
12+
13+ return (
14+ < div className = "bg-blue-900/20 border border-blue-500 rounded-lg p-4 mt-4" >
15+ < div className = "flex items-start gap-3" >
16+ < i className = "fa fa-key text-blue-400 text-lg mt-0.5" > </ i >
17+ < div className = "text-left flex-1" >
18+ < div className = "text-blue-400 font-medium mb-1" > New: BYOK & Local AI Support </ div >
19+ < div className = "text-secondary text-sm mb-3" >
20+ Wave AI now supports bring-your-own-key (BYOK) with OpenAI, Google Gemini, Azure, and
21+ OpenRouter, plus local models via Ollama, LM Studio, and other OpenAI-compatible providers.
22+ </ div >
23+ < div className = "flex items-center gap-3" >
24+ < button
25+ onClick = { handleOpenConfig }
26+ className = "bg-blue-500/80 hover:bg-blue-500 text-secondary hover:text-primary px-3 py-1.5 rounded-md text-sm font-medium cursor-pointer transition-colors"
27+ >
28+ Configure AI Modes
29+ </ button >
30+ < a
31+ href = "https://docs.waveterm.dev/waveai-modes"
32+ target = "_blank"
33+ rel = "noopener noreferrer"
34+ className = "text-secondary hover:text-primary text-sm cursor-pointer transition-colors flex items-center gap-1"
35+ >
36+ View Docs < i className = "fa fa-external-link text-xs" > </ i >
37+ </ a >
38+ </ div >
39+ </ div >
40+ </ div >
41+ </ div >
42+ ) ;
43+ } ;
44+
45+ BYOKAnnouncement . displayName = "BYOKAnnouncement" ;
46+
47+ export { BYOKAnnouncement } ;
0 commit comments