Add toggle for disabling Dyad Pro (#24)

* Add toggle for disabling Dyad Pro
* Entering key for Dyad pro enables dyad pro
This commit is contained in:
Will Chen
2025-04-26 10:13:35 -07:00
committed by GitHub
parent 2ad10ba039
commit 4848b2f085
4 changed files with 118 additions and 57 deletions

View File

@@ -46,7 +46,7 @@ export function getModelClient(
}
const dyadApiKey = settings.providerSettings?.auto?.apiKey?.value;
if (dyadApiKey) {
if (dyadApiKey && settings.enableDyadPro) {
const provider = createOpenAI({
apiKey: dyadApiKey,
baseURL: "https://llm-gateway.dyad.sh/v1",