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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user