Class NaruGitHubModelsProvider
java.lang.Object
net.thevpc.naru.api.model.AbstractNaruModelProvider
net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
net.thevpc.naru.ext.models.github.NaruGitHubModelsProvider
- All Implemented Interfaces:
NaruModelProvider,net.thevpc.nuts.spi.NComponent
GitHub Models provider — free inference for a curated catalog of models
using any GitHub Personal Access Token (PAT).
Endpoint: POST {baseUrl}/chat/completions
Default baseUrl: https://models.github.ai/inference
Model ids are publisher-qualified, e.g. openai/gpt-4o-mini.
-
Field Summary
Fields inherited from class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
protocols, supportedModels -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringFallback base url when<name>.urlconfig is not set.protected NaruModelCapabilitiesresolveCapabilities(String modelName) Statically maps capabilities since cloud-hosted capabilities cannot be polled natively.Methods inherited from class net.thevpc.naru.ext.models.openapi.AbstractOpenAICompatProvider
chatPath, createProtocol, findModelIds, getProtocolMethods inherited from class net.thevpc.naru.api.model.AbstractNaruModelProvider
apiKey, defaultEnvKey, getParam, getParamNames, getSecureParam, isEnabled, name, onParamChanged, setEnabled, setParamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thevpc.naru.api.model.NaruModelProvider
installModel, isSupportedInstallModel, isSupportedPsModel, isSupportedUninstallModel, isSupportedUnloadModel, psModel, uninstallModel, unloadModel
-
Constructor Details
-
NaruGitHubModelsProvider
public NaruGitHubModelsProvider()
-
-
Method Details
-
defaultBaseUrl
Description copied from class:AbstractOpenAICompatProviderFallback base url when<name>.urlconfig is not set.- Specified by:
defaultBaseUrlin classAbstractOpenAICompatProvider
-
resolveCapabilities
Description copied from class:AbstractOpenAICompatProviderStatically maps capabilities since cloud-hosted capabilities cannot be polled natively.- Specified by:
resolveCapabilitiesin classAbstractOpenAICompatProvider
-