-
Notifications
You must be signed in to change notification settings - Fork 0
Implement frontend GUI for LLM backend selection and configuration #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
…ment Co-authored-by: vinod0m <221896197+vinod0m@users.noreply.github.com>
| print("Settings: http://localhost:5000/settings") | ||
| print("\nPress Ctrl+C to stop the server") | ||
|
|
||
| app.run(debug=True, host='0.0.0.0', port=5000) No newline at end of file |
Check failure
Code scanning / CodeQL
Flask app is run in debug mode High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, the Flask application should not be run with debug=True unconditionally. The best practice is to enable debug mode only in a development environment, and ensure it is disabled in production. This can be achieved by checking an environment variable (such as FLASK_ENV or a custom variable like SDLC_ENV) or by defaulting to debug=False. The most robust fix is to read an environment variable (e.g., SDLC_ENV), and set debug=True only if it is set to 'development'. This change should be made in the if __name__ == '__main__': block in run_frontend.py. No new imports are needed, as os is already imported.
-
Copy modified lines R21-R22
| @@ -18,4 +18,5 @@ | ||
| print("Settings: http://localhost:5000/settings") | ||
| print("\nPress Ctrl+C to stop the server") | ||
|
|
||
| app.run(debug=True, host='0.0.0.0', port=5000) | ||
| debug_mode = os.environ.get('SDLC_ENV', 'production').lower() == 'development' | ||
| app.run(debug=debug_mode, host='0.0.0.0', port=5000) |
| else: | ||
| return jsonify({"success": False, "message": "Failed to save configuration"}), 500 | ||
| except Exception as e: | ||
| return jsonify({"success": False, "message": str(e)}), 400 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, we should avoid returning the raw exception message (str(e)) to the user in the API response. Instead, we should return a generic error message such as "An internal error has occurred" or "Failed to update configuration". The detailed exception information should be logged on the server for debugging. This can be done using Python's built-in logging module, which is a well-known and standard way to log errors. The changes should be made in the update_config function (lines 85-86) in src/frontend/app.py. We need to:
- Import the
loggingmodule at the top of the file. - Configure logging (if not already done).
- Replace the response in the exception handler to return a generic error message.
- Log the exception details on the server.
-
Copy modified line R10 -
Copy modified lines R14-R16 -
Copy modified lines R87-R88
| @@ -7,9 +7,13 @@ | ||
| import json | ||
| import os | ||
| from typing import Dict, Any | ||
| import logging | ||
|
|
||
| app = Flask(__name__) | ||
|
|
||
| # Configure logging | ||
| logging.basicConfig(level=logging.INFO) | ||
|
|
||
| # Configuration file path | ||
| CONFIG_FILE = os.path.join(os.path.dirname(__file__), 'config', 'settings.json') | ||
|
|
||
| @@ -83,7 +84,8 @@ | ||
| else: | ||
| return jsonify({"success": False, "message": "Failed to save configuration"}), 500 | ||
| except Exception as e: | ||
| return jsonify({"success": False, "message": str(e)}), 400 | ||
| logging.exception("Exception occurred while updating configuration") | ||
| return jsonify({"success": False, "message": "An internal error has occurred"}), 400 | ||
|
|
||
| @app.route('/api/backend/select', methods=['POST']) | ||
| def select_backend(): |
|
|
||
| return jsonify({"success": False, "message": "Invalid backend"}), 400 | ||
| except Exception as e: | ||
| return jsonify({"success": False, "message": str(e)}), 400 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, we should avoid returning the raw exception message to the client. Instead, we should log the exception details on the server (for debugging and auditing purposes) and return a generic error message to the client. This ensures that sensitive information is not exposed to users, while still allowing developers to diagnose issues. The fix should be applied to the exception handler in the /api/backend/select endpoint (lines 102-103). We should also ensure that the logging is done using Python's standard logging library, which is more appropriate than print for production code. This will require importing the logging module and configuring it if not already done.
-
Copy modified line R10 -
Copy modified lines R13-R14 -
Copy modified lines R103-R104
| @@ -7,9 +7,11 @@ | ||
| import json | ||
| import os | ||
| from typing import Dict, Any | ||
|
|
||
| import logging | ||
| app = Flask(__name__) | ||
|
|
||
| # Configure logging | ||
| logging.basicConfig(level=logging.INFO) | ||
| # Configuration file path | ||
| CONFIG_FILE = os.path.join(os.path.dirname(__file__), 'config', 'settings.json') | ||
|
|
||
| @@ -100,7 +100,8 @@ | ||
|
|
||
| return jsonify({"success": False, "message": "Invalid backend"}), 400 | ||
| except Exception as e: | ||
| return jsonify({"success": False, "message": str(e)}), 400 | ||
| logging.exception("Exception occurred in select_backend endpoint") | ||
| return jsonify({"success": False, "message": "An internal error has occurred."}), 500 | ||
|
|
||
| if __name__ == '__main__': | ||
| app.run(debug=True, host='0.0.0.0', port=5000) |
| return jsonify({"success": False, "message": str(e)}), 400 | ||
|
|
||
| if __name__ == '__main__': | ||
| app.run(debug=True, host='0.0.0.0', port=5000) No newline at end of file |
Check failure
Code scanning / CodeQL
Flask app is run in debug mode High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix this problem, the Flask application should not be run with debug=True unconditionally. The best practice is to control the debug mode using an environment variable (such as FLASK_DEBUG or a custom variable), or to default to debug=False unless explicitly set otherwise. This ensures that in production environments, debug mode is not enabled, reducing the risk of exposing the interactive debugger. The change should be made in the if __name__ == '__main__': block, replacing the hardcoded debug=True with logic that checks an environment variable (e.g., os.environ.get('FLASK_DEBUG', '0') == '1'). No new imports are needed, as os is already imported.
-
Copy modified lines R106-R107
| @@ -103,4 +103,5 @@ | ||
| return jsonify({"success": False, "message": str(e)}), 400 | ||
|
|
||
| if __name__ == '__main__': | ||
| app.run(debug=True, host='0.0.0.0', port=5000) | ||
| debug_mode = os.environ.get('FLASK_DEBUG', '0') == '1' | ||
| app.run(debug=debug_mode, host='0.0.0.0', port=5000) |
| The application stores settings in `config/settings.json`. This file is automatically created with default settings on first run. | ||
|
|
||
| Default backends supported: | ||
| - **OpenAI**: GPT models (GPT-3.5, GPT-4, etc.) |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| The application stores settings in `config/settings.json`. This file is automatically created with default settings on first run. | ||
|
|
||
| Default backends supported: | ||
| - **OpenAI**: GPT models (GPT-3.5, GPT-4, etc.) |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| The application stores settings in `config/settings.json`. This file is automatically created with default settings on first run. | ||
|
|
||
| Default backends supported: | ||
| - **OpenAI**: GPT models (GPT-3.5, GPT-4, etc.) |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
|
|
||
| # Default configuration | ||
| DEFAULT_CONFIG = { | ||
| "selected_backend": "openai", |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| DEFAULT_CONFIG = { | ||
| "selected_backend": "openai", | ||
| "backends": { | ||
| "openai": { |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
| test_config = { | ||
| "selected_backend": "anthropic", | ||
| "backends": { | ||
| "openai": {"name": "OpenAI", "api_key": "test-key", "enabled": True}, |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error test
| initial_backend = initial_config['selected_backend'] | ||
|
|
||
| # Switch to a different backend | ||
| new_backend = 'anthropic' if initial_backend == 'openai' else 'openai' |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error test
| initial_backend = initial_config['selected_backend'] | ||
|
|
||
| # Switch to a different backend | ||
| new_backend = 'anthropic' if initial_backend == 'openai' else 'openai' |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error test
| "name": "OpenAI", | ||
| "description": "OpenAI's GPT models", | ||
| "api_key": "test-openai-key", | ||
| "model": "gpt-4", |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error test
| "name": "Anthropic", | ||
| "description": "Anthropic's Claude models", | ||
| "api_key": "test-anthropic-key", | ||
| "model": "claude-3-opus", |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error test
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.Unrecognized words (202)These words are not needed and should be removedaaaaabbb aabbcc ABANDONFONT abbcc abcc ABCG ABE abgr ABORTIFHUNG acidev ACIOSS acp actctx ACTCTXW ADDALIAS ADDREF ADDSTRING ADDTOOL adml admx AFill AFX AHelper ahicon ahz AImpl AInplace ALIGNRIGHT allocing alpc ALTERNATENAME ALTF ALTNUMPAD ALWAYSTIP ansicpg ANSISYS ANSISYSRC ANSISYSSC answerback ANSWERBACKMESSAGE antialiasing ANull anycpu APARTMENTTHREADED APCA APCs APIENTRY apiset APPBARDATA appcontainer appletname APPLMODAL Applocal appmodel appshellintegration APPWINDOW APPXMANIFESTVERSION APrep APSTUDIO ARRAYSIZE ARROWKEYS ASBSET ASetting ASingle ASYNCDONTCARE ASYNCWINDOWPOS atch ATest atg aumid Authenticode AUTOBUDDY AUTOCHECKBOX autohide AUTOHSCROLL automagically autopositioning AUTORADIOBUTTON autoscrolling Autowrap AVerify awch AZZ backgrounded Backgrounder backgrounding backstory Bazz bbccb BBDM BBGGRR bbwe bcount bcx bcz BEFOREPARENT beginthread benchcat bgfx bgidx Bgk bgra BHID bigobj binlog binplace binplaced bitcoin bitcrazed BITMAPINFO BITMAPINFOHEADER bitmasks BITOPERATION BKCOLOR BKGND BKMK Blt blu BLUESCROLL bmi bodgy BOLDFONT Borland boutput boxheader BPBF bpp BPPF branchconfig Browsable Bspace BTNFACE bufferout buffersize buflen buildsystems buildtransitive BValue Cacafire CALLCONV CANDRABINDU capslock CARETBLINKINGENABLED CARRIAGERETURN cascadia catid cazamor CBash cbiex CBN cbt Ccc cch CCHAR CCmd ccolor CCom CConsole CCRT cdd cds CELLSIZE cfae cfie cfiex cfte CFuzz cgscrn chafa changelists CHARSETINFO chshdng CHT CLASSSTRING cleartype CLICKACTIVE clickdown CLIENTID clipbrd CLIPCHILDREN CLIPSIBLINGS closetest cloudconsole cloudvault CLSCTX clsids cmatrix cmder CMDEXT cmh CMOUSEBUTTONS Cmts cmw CNL cnn codepages coinit colorizing COLORONCOLOR COLORREFs colorschemes colorspec colortable colortbl colortest colortool COLORVALUE comctl commdlg conapi conattrs conbufferout concfg conclnt concretizations conddkrefs condrv conechokey conemu CONIME conintegrity conintegrityuwp coninteractivitybase coninteractivityonecore coninteractivitywin coniosrv CONKBD conlibk conmsgl CONNECTINFO connyection CONOUT conprops conpropsp conptylib conserv consoleaccessibility consoleapi CONSOLECONTROL CONSOLEENDTASK consolegit consolehost CONSOLEIME CONSOLESETFOREGROUND consoletaeftemplates consoleuwp Consolewait CONSOLEWINDOWOWNER consrv constexprable contentfiles conterm contsf contypes conwinuserrefs coordnew COPYCOLOR COPYDATA COPYDATASTRUCT CORESYSTEM cotaskmem countof CPG cpinfo CPINFOEX CPLINFO cplusplus CPPCORECHECK cppcorecheckrules cpprestsdk cppwinrt cpx CREATESCREENBUFFER CREATESTRUCT CREATESTRUCTW createvpack crisman crloew CRTLIBS csbi csbiex CSHORT Cspace CSRSS csrutil CSTYLE CSwitch CTerminal ctl ctlseqs CTRLEVENT CTRLFREQUENCY CTRLKEYSHORTCUTS Ctrls CTRLVOLUME CUAS CUF cupxy CURRENTFONT currentmode CURRENTPAGE CURSORCOLOR CURSORSIZE CURSORTYPE CUsers CUU Cwa cwch CXFRAME CXFULLSCREEN CXHSCROLL CXMIN CXPADDEDBORDER CXSIZE CXSMICON CXVIRTUALSCREEN CXVSCROLL CYFRAME CYFULLSCREEN cygdrive CYHSCROLL CYMIN CYPADDEDBORDER CYSIZE CYSIZEFRAME CYSMICON CYVIRTUALSCREEN CYVSCROLL dai DATABLOCK DBatch dbcs DBCSFONT DBGALL DBGCHARS DBGFONTS DBGOUTPUT dbh dblclk DBUILD Dcd DColor DCOMMON DComposition DDESHARE DDevice DEADCHAR Debian debugtype DECAC DECALN DECANM DECARM DECAUPSS decawm DECBI DECBKM DECCARA DECCIR DECCKM DECCKSR DECCOLM deccra DECCTR DECDC DECDHL decdld DECDMAC DECDWL DECECM DECEKBD DECERA DECFI DECFNK decfra DECGCI DECGCR DECGNL DECGRA DECGRI DECIC DECID DECINVM DECKPAM DECKPM DECKPNM DECLRMM DECMSR DECNKM DECNRCM DECOM decommit DECPCCM DECPCTERM DECPS DECRARA decrc DECREQTPARM DECRLM DECRPM DECRQCRA DECRQDE DECRQM DECRQPSR DECRQSS DECRQTSR DECRQUPSS DECRSPS decrst DECSACE DECSASD decsc DECSCA DECSCNM DECSCPP DECSCUSR DECSDM DECSED DECSEL DECSERA DECSET DECSLPP DECSLRM DECSMKR DECSR DECST DECSTBM DECSTGLT DECSTR DECSWL DECSWT DECTABSR DECTCEM DECXCPR DEFAPP DEFAULTBACKGROUND DEFAULTFOREGROUND DEFAULTTONEAREST DEFAULTTONULL DEFAULTTOPRIMARY defectdefs DEFERERASE deff DEFFACE defing DEFPUSHBUTTON defterm DELAYLOAD DELETEONRELEASE depersist deprioritized devicecode Dext DFactory DFF dialogbox DINLINE directio DIRECTX DISABLEDELAYEDEXPANSION DISABLENOSCROLL DISPLAYATTRIBUTE DISPLAYCHANGE dlg DLGC DLLGETVERSIONPROC dllinit dllmain DLLVERSIONINFO DLOOK DONTCARE doskey DPG DPIAPI DPICHANGE DPICHANGED DPIs dpix dpiy dpnx DRAWFRAME DRAWITEM DRAWITEMSTRUCT drcs DROPFILES drv DSBCAPS DSBLOCK DSBPLAY DSBUFFERDESC DSBVOLUME dsm dsound DSSCL DSwap DTo DTTERM DUNICODE DUNIT dup'ed dvi dwl DWLP dwm dwmapi DWORDs dwrite dxgi dxsm dxttbmp Dyreen EASTEUROPE ECH echokey ecount ECpp Edgium EDITKEYS EDITTEXT EDITUPDATE Efast efg efgh EHsc EINS ELEMENTNOTAVAILABLE EMPTYBOX enabledelayedexpansion ENDCAP endptr ENTIREBUFFER ENU ENUMLOGFONT ENUMLOGFONTEX EOB EOK EPres EQU ERASEBKGND ERRORONEXIT ESFCIB ESV ETW EUDC eventing evflags evt execd executionengine exemain EXETYPE exeuwp exewin exitwin EXPUNGECOMMANDHISTORY EXSTYLE EXTENDEDEDITKEY EXTKEY EXTTEXTOUT facename FACENODE FACESIZE FAILIFTHERE fastlink fcharset fdw fesb ffd FFFD fgbg FGCOLOR FGHIJ fgidx FGs FILEDESCRIPTION FILESUBTYPE FILESYSPATH FILEW FILLATTR FILLCONSOLEOUTPUT FILTERONPASTE FINDCASE FINDDLG FINDDOWN FINDREGEX FINDSTRINGEXACT FITZPATRICK FIXEDFILEINFO Flg flyouts fmodern fmtarg fmtid FOLDERID FONTCHANGE fontdlg FONTENUMDATA FONTENUMPROC FONTFACE FONTHEIGHT fontinfo FONTOK FONTSTRING FONTTYPE FONTWIDTH FONTWINDOW foob FORCEOFFFEEDBACK FORCEONFEEDBACK FRAMECHANGED fre fsanitize Fscreen FSINFOCLASS fte Ftm Fullscreens Fullwidth FUNCTIONCALL fuzzmain fuzzmap fuzzwrapper fuzzyfinder fwdecl fwe fwlink fzf gcx gdi gdip gdirenderer gdnbaselines Geddy geopol GETALIAS GETALIASES GETALIASESLENGTH GETALIASEXES GETALIASEXESLENGTH GETAUTOHIDEBAREX GETCARETWIDTH GETCLIENTAREAANIMATION GETCOMMANDHISTORY GETCOMMANDHISTORYLENGTH GETCONSOLEINPUT GETCONSOLEPROCESSLIST GETCONSOLEWINDOW GETCOUNT GETCP GETCURSEL GETCURSORINFO GETDISPLAYMODE GETDISPLAYSIZE GETDLGCODE GETDPISCALEDSIZE GETFONTINFO GETHARDWARESTATE GETHUNGAPPTIMEOUT GETICON GETITEMDATA GETKEYBOARDLAYOUTNAME GETKEYSTATE GETLARGESTWINDOWSIZE GETLBTEXT GETMINMAXINFO GETMOUSEINFO GETMOUSEVANISH GETNUMBEROFFONTS GETNUMBEROFINPUTEVENTS GETOBJECT GETSELECTIONINFO getset GETTEXTLEN GETTITLE GETWAITTOKILLSERVICETIMEOUT GETWAITTOKILLTIMEOUT GETWHEELSCROLLCHARACTERS GETWHEELSCROLLCHARS GETWHEELSCROLLLINES Gfun gfx gfycat GGI GHgh GHIJK GHIJKL gitcheckin gitfilters gitlab gle GLOBALFOCUS GLYPHENTRY GMEM Goldmine gonce goutput GREENSCROLL Grehan Greyscale gridline gset gsl Guake guc GUIDATOM GValue GWL GWLP gwsz HABCDEF Hackathon HALTCOND HANGEUL hardlinks hashalg HASSTRINGS hbitmap hbm HBMMENU hbmp hbr hbrush HCmd hdc hdr HDROP hdrstop HEIGHTSCROLL hfind hfont hfontresource hglobal hhook hhx HIBYTE hicon HIDEWINDOW hinst HISTORYBUFS HISTORYNODUP HISTORYSIZE hittest HIWORD HKCU hkey hkl HKLM hlsl HMB HMK hmod hmodule hmon homoglyph hostable hostlib HPA hpcon hpen HPR HProvider HREDRAW hresult hscroll hstr HTBOTTOMLEFT HTBOTTOMRIGHT HTCAPTION HTCLIENT HTLEFT HTMAXBUTTON HTMINBUTTON HTRIGHT HTTOP HTTOPLEFT HTTOPRIGHT hungapp HVP hwheel hwnd HWNDPARENT iccex ICONERROR ICONINFORMATION ICONSTOP ICONWARNING IDCANCEL IDD IDISHWND idl idllib IDOK IDR IDTo IDXGI IFACEMETHODIMP ification IGNORELANGUAGE iid IIo ILC ILCo ILD ime IMPEXP inclusivity INCONTEXT INFOEX inheritcursor INITCOMMONCONTROLSEX INITDIALOG INITGUID INITMENU inkscape INLINEPREFIX inproc Inputkeyinfo Inputreadhandledata INPUTSCOPE INSERTMODE INTERACTIVITYBASE INTERCEPTCOPYPASTE INTERNALNAME intsafe INVALIDARG INVALIDATERECT Ioctl ipch ipsp iterm itermcolors itf Ith IUI IWIC IXP jconcpp JOBOBJECT JOBOBJECTINFOCLASS JONGSEONG JPN jsoncpp jsprovider jumplist JUNGSEONG KAttrs kawa Kazu kazum kernelbase kernelbasestaging KEYBDINPUT keychord keydowns KEYFIRST KEYLAST Keymapping keystate keyups Kickstart KILLACTIVE KILLFOCUS kinda KIYEOK KLF KLMNO KOK KPRIORITY KVM kyouhaishaheiku langid LANGUAGELIST lasterror LASTEXITCODE LAYOUTRTL lbl LBN LBUTTON LBUTTONDBLCLK LBUTTONDOWN LBUTTONUP lcb lci LCONTROL LCTRL lcx LEFTALIGN libsancov libtickit LIMITTEXT LINEDOWN LINESELECTION LINEWRAP LINKERRCAP LINKERROR linputfile listptr listptrsize llx LMENU lnkd lnkfile LNM LOADONCALL LOBYTE localappdata locsrc Loewen LOGBRUSH LOGFONT LOGFONTA LOGFONTW logissue losslessly loword lparam lpch LPCPLINFO LPCREATESTRUCT lpcs LPCTSTR lpdata LPDBLIST lpdis LPDRAWITEMSTRUCT lpdw lpelfe lpfn LPFNADDPROPSHEETPAGE LPMEASUREITEMSTRUCT LPMINMAXINFO lpmsg LPNEWCPLINFO LPNEWCPLINFOA LPNEWCPLINFOW LPNMHDR lpntme LPPROC LPPROPSHEETPAGE LPPSHNOTIFY lprc lpstr lpsz LPTSTR LPTTFONTLIST lpv LPW LPWCH lpwfx LPWINDOWPOS lpwpos lpwstr LRESULT lsb lsconfig lstatus lstrcmp lstrcmpi LTEXT ltsc LUID luma lval LVB LVERTICAL LVT LWA LWIN lwkmvj majorly MAKEINTRESOURCE MAKEINTRESOURCEW MAKELANGID MAKELONG MAKELPARAM MAKELRESULT MAPBITMAP MAPVIRTUALKEY MAPVK MAXDIMENSTRING MAXSHORT maxval maxversiontested MAXWORD maybenull MBUTTON MBUTTONDBLCLK MBUTTONDOWN MBUTTONUP mdmerge MDs mdtauk MEASUREITEM megamix memallocator meme MENUCHAR MENUCONTROL MENUDROPALIGNMENT MENUITEMINFO MENUSELECT metaproj Mgrs microsoftpublicsymbols midl mii MIIM milli mincore mindbogglingly minkernel MINMAXINFO minwin minwindef MMBB mmcc MMCPL MNC MNOPQ MNOPQR MODALFRAME MODERNCORE MONITORINFO MONITORINFOEXW MONITORINFOF MOUSEACTIVATE MOUSEFIRST MOUSEHWHEEL MOVESTART msb msbuildcache msctls msdata MSDL MSGCMDLINEF MSGF MSGFILTER MSGFLG MSGMARKMODE MSGSCROLLMODE MSGSELECTMODE msiexec MSIL msix MSRC MSVCRTD MTSM murmurhash muxes myapplet mybranch mydir Mypair Myval NAMELENGTH namestream NCCALCSIZE NCCREATE NCLBUTTONDOWN NCLBUTTONUP NCMBUTTONDOWN NCMBUTTONUP NCPAINT NCRBUTTONDOWN NCRBUTTONUP NCXBUTTONDOWN NCXBUTTONUP NEL nerf nerror netcoreapp netstandard NEWCPLINFO NEWCPLINFOA NEWCPLINFOW Newdelete NEWINQUIRE NEWINQURE NEWPROCESSWINDOW NEWTEXTMETRIC NEWTEXTMETRICEX Newtonsoft NEXTLINE nfe NLSMODE NOACTIVATE NOAPPLYNOW NOCLIP NOCOMM NOCONTEXTHELP NOCOPYBITS NODUP noexcepts NOFONT NOHIDDENTEXT NOINTEGRALHEIGHT NOINTERFACE NOLINKINFO nologo NOMCX NOMINMAX NOMOVE NONALERT nonbreaking nonclient NONINFRINGEMENT NONPREROTATED nonspace NOOWNERZORDER NOPAINT noprofile NOREDRAW NOREMOVE NOREPOSITION NORMALDISPLAY NOSCRATCH NOSEARCH noselect NOSELECTION NOSENDCHANGING NOSIZE NOSNAPSHOT NOTHOUSANDS NOTICKS NOTIMEOUTIFNOTHUNG NOTIMPL NOTOPMOST NOTRACK NOTSUPPORTED nouicompat nounihan NOYIELD NOZORDER NPFS nrcs NSTATUS ntapi ntdef NTDEV ntdll ntifs ntm ntstatus nttree ntuser NTVDM nugetversions NUKTA nullness nullonfailure nullopts NUMSCROLL NUnit nupkg NVIDIA NVT OACR ocolor oemcp OEMFONT OEMFORMAT OEMs OLEAUT OLECHAR onecore ONECOREBASE ONECORESDKTOOLS ONECORESHELL onecoreuap onecoreuapuuid onecoreuuid ONECOREWINDOWS onehalf oneseq oob openbash opencode opencon openconsole openconsoleproxy openps openvt ORIGINALFILENAME osc OSDEPENDSROOT OSGENG outdir OUTOFCONTEXT Outptr outstr OVERLAPPEDWINDOW OWNDC owneralias OWNERDRAWFIXED packagename packageuwp PACKAGEVERSIONNUMBER PACKCOORD PACKVERSION pacp pagedown pageup PAINTPARAMS PAINTSTRUCT PALPC pankaj parentable PATCOPY PATTERNID pbstr pcb pcch PCCHAR PCCONSOLE PCD pcg pch PCIDLIST PCIS PCLONG pcon PCONSOLE PCONSOLEENDTASK PCONSOLESETFOREGROUND PCONSOLEWINDOWOWNER pcoord pcshell PCSHORT PCSR PCSTR PCWCH PCWCHAR PCWSTR pdbs pdbstr pdcs PDPs pdtobj pdw pdx peb PEMAGIC pfa PFACENODE pfed pfi PFILE pfn PFNCONSOLECREATEIOTHREAD PFONT PFONTENUMDATA PFS pgd pgomgr PGONu pguid phhook phico phicon phwnd pidl PIDLIST piml pimpl pinvoke pipename pipestr pixelheight PIXELSLIST PJOBOBJECT platforming playsound ploc ploca plocm PLOGICAL pnm PNMLINK pntm POBJECT Podcast POINTERUPDATE POINTSLIST policheck POLYTEXTW POPUPATTR popups PORFLG POSTCHARBREAKS POSX POSXSCROLL POSYSCROLL ppbstr PPEB ppf ppidl pprg PPROC ppropvar ppsi ppsl ppsp ppsz ppv ppwch PQRST prc prealigned prect prefast preflighting prepopulate presorted PREVENTPINNING PREVIEWLABEL PREVIEWWINDOW PREVLINE prg pri processhost PROCESSINFOCLASS PRODEXT PROPERTYID PROPERTYKEY propertyval propsheet PROPSHEETHEADER PROPSHEETPAGE propslib propsys PROPTITLE propvar propvariant psa PSECURITY pseudoconsole psh pshn PSHNOTIFY PSINGLE psl psldl PSNRET PSobject psp PSPCB psr PSTR psz ptch ptsz PTYIn PUCHAR pvar pwch PWDDMCONSOLECONTEXT Pwease pweview pws pwstr pwsz pythonw Qaabbcc QUERYOPEN quickedit QUZ QWER qwerty qwertyuiopasdfg Qxxxxxxxxxxxxxxx qzmp RAII RALT rasterbar rasterfont rasterization RAWPATH raytracers razzlerc rbar RBUTTON RBUTTONDBLCLK RBUTTONDOWN RBUTTONUP rcch rcelms rclsid RCOA RCOCA RCOCW RCONTROL RCOW rcv readback READCONSOLE READCONSOLEOUTPUT READCONSOLEOUTPUTSTRING READMODE rectread redef redefinable redist REDSCROLL REFCLSID REFGUID REFIID REFPROPERTYKEY REGISTEROS REGISTERVDM regkey REGSTR RELBINPATH rendersize reparented reparenting REPH replatformed Replymessage reportfileaccesses repositorypath rerasterize rescap RESETCONTENT resheader resmimetype resultmacros resw resx rfa rfid rftp rgbi RGBQUAD rgbs rgfae rgfte rgn rgp rgpwsz rgrc rguid rgw RIGHTALIGN RIGHTBUTTON riid ris robomac rodata rosetta RRF RRRGGGBB rsas rtcore RTEXT RTLREADING Rtn runas RUNDLL runformat runft RUNFULLSCREEN runfuzz runsettings runtest runtimeclass runuia runut runxamlformat RVERTICAL rvpa RWIN rxvt safemath sba SBCS SBCSDBCS sbi sbiex scancodes scanline schemename SCL SCRBUF SCRBUFSIZE screenbuffer SCREENBUFFERINFO screeninfo scriptload scrollback SCROLLFORWARD SCROLLINFO scrolllock scrolloffset SCROLLSCALE SCROLLSCREENBUFFER scursor sddl SDKDDK segfault SELCHANGE SELECTEDFONT SELECTSTRING Selfhosters Serbo SERVERDLL SETACTIVE SETBUDDYINT setcp SETCURSEL SETCURSOR SETCURSORINFO SETCURSORPOSITION SETDISPLAYMODE SETFOCUS SETFOREGROUND SETHARDWARESTATE SETHOTKEY SETICON setintegritylevel SETITEMDATA SETITEMHEIGHT SETKEYSHORTCUTS SETMENUCLOSE SETNUMBEROFCOMMANDS SETOS SETPALETTE SETRANGE SETSCREENBUFFERSIZE SETSEL SETTEXTATTRIBUTE SETTINGCHANGE Setwindow SETWINDOWINFO SFGAO SFGAOF sfi SFINAE SFolder SFUI sgr SHCo shcore shellex SHFILEINFO SHGFI SHIFTJIS shlwapi SHORTPATH SHOWCURSOR SHOWDEFAULT SHOWMAXIMIZED SHOWMINNOACTIVE SHOWNA SHOWNOACTIVATE SHOWNORMAL SHOWWINDOW sidebyside SIF SIGDN SINGLETHREADED siup sixel SIZEBOX SIZESCROLL SKIPFONT SKIPOWNPROCESS SKIPOWNTHREAD sku sldl SLGP SLIST slmult sln slpit SManifest SMARTQUOTE SMTO snapcx snapcy snk SOLIDBOX Solutiondir sourced SRCAND SRCCODEPAGE SRCCOPY SRCINVERT SRCPAINT srcsrv SRCSRVTRG srctool srect SRGS srvinit srvpipe ssa startdir STARTF STARTUPINFO STARTUPINFOEX STARTUPINFOEXW STARTUPINFOW STARTWPARMS STARTWPARMSA STARTWPARMSW stdafx STDAPI stdc stdcpp STDEXT STDMETHODCALLTYPE STDMETHODIMP STGM STRINGTABLE STRSAFE STUBHEAD STUVWX stylecop SUA subcompartment subkeys SUBLANG swapchain swapchainpanel SWMR SWP swrapped SYMED SYNCPAINT syscalls SYSCHAR SYSCOLOR SYSCOMMAND SYSDEADCHAR SYSKEYDOWN SYSKEYUP SYSLIB SYSLINK SYSMENU sysparams SYSTEMHAND SYSTEMMENU SYSTEMTIME tabview taef TARG targetentrypoint TARGETLIBS TARGETNAME targetver tbc tbi Tbl TBM TCHAR TCHFORMAT TCI tcommands tdbuild Tdd TDP Teb Techo tellp teraflop terminalcore terminalinput terminalrenderdata TERMINALSCROLLING terminfo testcon testd testenvs testlab testlist testmd testname TESTNULL testpass testpasses TEXCOORD textattribute TEXTATTRIBUTEID textboxes textbuffer TEXTINCLUDE textinfo TEXTMETRIC TEXTMETRICW textmode texttests THUMBPOSITION THUMBTRACK tilunittests titlebars TITLEISLINKNAME TLDP TLEN TMAE TMPF tmultiple tofrom toolbars TOOLINFO TOOLWINDOW TOPDOWNDIB tosign tracelogging traceviewpp trackbar trackpad transitioning Trd TRIMZEROHEADINGS trx tsgr tsm TSTRFORMAT TTBITMAP TTFONT TTFONTLIST TTM TTo tvpp tvtseq TYUI uap uapadmin UAX UBool ucd uch UChars udk uer UError uia UIACCESS uiacore uiautomationcore uielem UINTs uld uldash uldb ulwave Unadvise unattend UNCPRIORITY unexpand unhighlighting unhosted UNICODETEXT UNICRT Unintense unittesting unittests unk unknwn UNORM unparseable untextured UPDATEDISPLAY UPDOWN UPKEY upss uregex URegular usebackq USECALLBACK USECOLOR USECOUNTCHARS USEDEFAULT USEDX USEFILLATTRIBUTE USEGLYPHCHARS USEHICON USEPOSITION userdpiapi Userp userprivapi USERSRV USESHOWWINDOW USESIZE USESTDHANDLES usp USRDLL utext utr UVWXY uwa uwp uwu uxtheme Vanara vararg vclib vcxitems VERCTRL VERTBAR VFT vga vgaoem viewkind VIRAMA Virt VIRTTERM visualstudiosdk vkey VKKEYSCAN VMs VPA vpack vpackdirectory VPACKMANIFESTDIRECTORY VPR VREDRAW vsc vsconfig vscprintf VSCROLL vsdevshell vse vsinfo vsinstalldir vspath VSTAMP vstest VSTS VSTT vswhere vtapp VTE VTID vtmode vtpipeterm VTRGB VTRGBTo vtseq vtterm vttest WANSUNG WANTARROWS WANTTAB wapproj WAVEFORMATEX wbuilder wch wchars WCIA WCIW wcs WCSHELPER wcsrev wcswidth wddm wddmcon WDDMCONSOLECONTEXT wdm webpage websites wekyb wewoad wex wextest WFill wfopen WHelper wic WIDTHSCROLL Widthx Wiggum WImpl WINAPI winbasep wincon winconp winconpty winconptydll winconptylib wincontypes WINCORE windbg WINDEF windir windll WINDOWALPHA windowdpiapi WINDOWEDGE WINDOWINFO windowio WINDOWPLACEMENT windowpos WINDOWPOSCHANGED WINDOWPOSCHANGING windowproc windowrect windowsapp WINDOWSIZE windowsshell windowsterminal windowtheme winevent winget wingetcreate WINIDE winmd winmgr winmm WINMSAPP winnt Winperf WInplace winres winrt winternl winui winuser WINVER wistd wmain WMSZ wnd WNDALLOC WNDCLASS WNDCLASSEX WNDCLASSEXW WNDCLASSW Wndproc WNegative WNull wordi wordiswrapped workarea WOutside WOWARM WOWx wparam WPartial wpf wpfdotnet WPR WPrep WPresent wprp wprpi wrappe wregex writeback WRITECONSOLE WRITECONSOLEINPUT WRITECONSOLEOUTPUT WRITECONSOLEOUTPUTSTRING wrkstr WRL wrp WRunoff WSLENV wstr wstrings wsz wtd WTest WTEXT WTo wtof WTs WTSOFTFONT wtw Wtypes WUX WVerify WWith wxh wyhash wymix wyr xact Xamlmeta xamls xaz xbf xbutton XBUTTONDBLCLK XBUTTONDOWN XBUTTONUP XCast XCENTER xcopy XCount xdy XEncoding xes XFG XFile XFORM XIn xkcd XManifest XMath XNamespace xorg XPan XResource xsi xstyler XSubstantial XTest XTPOPSGR XTPUSHSGR xtr XTWINOPS xunit xutr XVIRTUALSCREEN yact YCast YCENTER YCount yizz YLimit YPan YSubstantial YVIRTUALSCREEN zabcd Zabcdefghijklmn Zabcdefghijklmnopqrstuvwxyz ZCmd ZCtrl ZWJs ZYXWVU ZYXWVUT ZYXWVUTd zzfSome files were automatically ignored 🙈These sample patterns would exclude them: You should consider excluding directory paths (e.g. You should consider adding them to: File matching is via Perl regular expressions. To check these files, more of their words need to be in the dictionary than not. You can use To accept these unrecognized words as correct, update file exclusions, and remove the previously acknowledged and now absent words, you could run the following commands... in a clone of the git@github.com:SoftwareDevLabs/SDLC_core.git repository curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.25/apply.pl' |
perl - 'https://github.com/SoftwareDevLabs/SDLC_core/actions/runs/17055009907/attempts/1' &&
git commit -m 'Update check-spelling metadata'OR To have the bot accept them for you, comment in the PR quoting the following line: Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: Should be
|
| ❌ Errors, Warnings, and Notices | Count |
|---|---|
| 49 | |
| ℹ️ candidate-pattern | 15 |
| ❌ check-file-path | 17 |
| ❌ forbidden-pattern | 1 |
See ❌ Event descriptions for more information.
✏️ Contributor please read this
By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.
If the listed items are:
- ... misspelled, then please correct them instead of using the command.
- ... names, please add them to
.github/actions/spelling/allow/names.txt. - ... APIs, you can add them to a file in
.github/actions/spelling/allow/. - ... just things you're using, please add them to an appropriate file in
.github/actions/spelling/expect/. - ... tokens you only need in one place and shouldn't generally be used, you can add an item in an appropriate file in
.github/actions/spelling/patterns/.
See the README.md in each directory for more information.
🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉
If the flagged items are 🤯 false positives
If items relate to a ...
-
binary file (or some other file you wouldn't want to check at all).
Please add a file path to the
excludes.txtfile matching the containing file.File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
^refers to the file's path from the root of the repository, so^README\.md$would exclude README.md (on whichever branch you're using). -
well-formed pattern.
If you can write a pattern that would match it,
try adding it to thepatterns.txtfile.Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.
This PR implements a comprehensive web-based frontend GUI for selecting and configuring LLM backends in the SDLC_core infrastructure, addressing the need for a user-friendly settings interface.
🎯 What was implemented
Dashboard Interface (
/)Settings Page (
/settings)Backend Support
🛠️ Technical Details
The implementation uses:
🚀 Usage
The GUI provides exactly what was requested in the issue - a settings interface where users can select their preferred LLM backend option, similar to modern configuration interfaces. Users can now easily switch between OpenAI and Anthropic backends, configure API keys, and manage all LLM infrastructure settings through an intuitive web interface instead of manual configuration files.
📁 Files Added
src/frontend/app.py- Main Flask application with API endpointssrc/frontend/templates/- HTML templates for dashboard and settingssrc/frontend/test_app.py- Complete test suiterun_frontend.py- Application launcher scriptFixes SoftwareDevLabs/frontend#2.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.