| | |
| | | </div> |
| | | )} |
| | | |
| | | {/* API Key 按钮 */} |
| | | <button |
| | | onClick={() => setShowApiKeyInput(true)} |
| | | className="fixed top-24 right-6 z-10 w-9 h-9 flex items-center justify-center rounded-full bg-white/80 hover:bg-white shadow-sm border border-gray-100 transition-colors" |
| | | title="设置API Key" |
| | | > |
| | | <svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5 text-gray-600" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"> |
| | | <path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" /> |
| | | </svg> |
| | | </button> |
| | | |
| | | {/* 聊天区域 */} |
| | | <div className="flex-1 flex flex-col h-screen"> |
| | | <div className="flex-1 overflow-y-auto pt-20 pb-32"> |