Package net.thevpc.naru.api.model
Class NaruModelConfig
java.lang.Object
net.thevpc.naru.api.model.NaruModelConfig
- All Implemented Interfaces:
net.thevpc.nuts.elem.NToElement
-
Constructor Summary
ConstructorsConstructorDescriptionNaruModelConfig(String provider, String model) NaruModelConfig(String name, String provider, String model, Long contextLength, Float temperature, Float nucleusThreshold, Integer candidateCount, Integer maxTokens, List<String> stop) NaruModelConfig(NaruModelKey provider) NaruModelConfig(net.thevpc.nuts.elem.NElement element) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()key()model()name()static net.thevpc.nuts.util.NOptional<NaruModelConfig>of(net.thevpc.nuts.elem.NElement element) provider()stop()net.thevpc.nuts.elem.NElementtoString()net.thevpc.nuts.text.NTexttoText()withCandidateCount(Integer candidateCount) withContextLength(Long contextLength) withMaxTokens(Integer maxTokens) withNucleusThreshold(Float nucleusThreshold) withProvider(String provider) withTemperature(Float temperature)
-
Constructor Details
-
NaruModelConfig
-
NaruModelConfig
-
NaruModelConfig
-
NaruModelConfig
public NaruModelConfig(net.thevpc.nuts.elem.NElement element)
-
-
Method Details
-
of
public static net.thevpc.nuts.util.NOptional<NaruModelConfig> of(net.thevpc.nuts.elem.NElement element) -
withName
-
withProvider
-
withModel
-
withContextLength
-
withTemperature
-
withNucleusThreshold
-
withCandidateCount
-
withMaxTokens
-
withStop
-
toElement
public net.thevpc.nuts.elem.NElement toElement()- Specified by:
toElementin interfacenet.thevpc.nuts.elem.NToElement
-
name
-
provider
-
model
-
contextLength
-
temperature
-
nucleusThreshold
-
candidateCount
-
maxTokens
-
stop
-
toString
-
toText
public net.thevpc.nuts.text.NText toText() -
key
-
equals
-
hashCode
public int hashCode()
-