package com.yaoai.ai.providers.config;

public record ResolvedModelConfig(
        String provider,
        String providerName,
        String protocol,
        String baseUrl,
        String apiKey,
        String modelId,
        String modelName,
        String endpoint,
        String statusEndpoint,
        String resolveIp
) {
    public boolean isProtocol(String value) {
        return protocol != null && protocol.equalsIgnoreCase(value);
    }

    public boolean isProvider(String value) {
        return provider != null && provider.equalsIgnoreCase(value);
    }

    public boolean isAgnes() {
        return isProvider("agnes") || isProtocol("agnes");
    }
}
