All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apoc.ml.aws.BedrockGetModelsConfig Maven / Gradle / Ivy

package apoc.ml.aws;

import java.util.Map;

public class BedrockGetModelsConfig extends AWSConfig {
    public static final String DEFAULT_PATH = "foundation-models";
    public static final String PATH_GET = "path";

    public BedrockGetModelsConfig(Map config) {
        super(config);
    }

    @Override
    String getDefaultEndpoint(Map config) {
        String path = (String) config.getOrDefault(PATH_GET, DEFAULT_PATH);
        return "https://bedrock.%s.amazonaws.com/%s".formatted(getRegion(), path);
    }

    @Override
    String getDefaultMethod() {
        return "GET";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy