public static class EmbeddingModel.Builder
extends java.lang.Object
构造器和说明 |
---|
Builder(EmbeddingConfig config) |
Builder(java.lang.String apiUrl) |
限定符和类型 | 方法和说明 |
---|---|
EmbeddingModel.Builder |
apiKey(java.lang.String apiKey) |
EmbeddingModel |
build() |
EmbeddingModel.Builder |
headerSet(java.lang.String key,
java.lang.String value) |
EmbeddingModel.Builder |
model(java.lang.String model) |
EmbeddingModel.Builder |
provider(java.lang.String provider) |
EmbeddingModel.Builder |
timeout(java.time.Duration timeout) |
public Builder(java.lang.String apiUrl)
public Builder(EmbeddingConfig config)
public EmbeddingModel.Builder apiKey(java.lang.String apiKey)
public EmbeddingModel.Builder provider(java.lang.String provider)
public EmbeddingModel.Builder model(java.lang.String model)
public EmbeddingModel.Builder headerSet(java.lang.String key, java.lang.String value)
public EmbeddingModel.Builder timeout(java.time.Duration timeout)
public EmbeddingModel build()