Class GitHubModelsChatModel
java.lang.Object
dev.langchain4j.model.github.GitHubModelsChatModel
- All Implemented Interfaces:
ChatModel
@Deprecated(since="1.10.0",
forRemoval=true)
public class GitHubModelsChatModel
extends Object
implements ChatModel
Deprecated, for removal: This API element is subject to removal in a future version.
This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.
Represents a language model, hosted on GitHub Models, that has a chat completion interface, such as gpt-4o.
Mandatory parameters for initialization are: gitHubToken (the GitHub Token used for authentication) and modelName (the name of the model to use). You can also provide your own ChatCompletionsClient instance, if you need more flexibility.
The list of models, as well as the documentation and a playground to test them, can be found at https://github.com/marketplace/models
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated, for removal: This API element is subject to removal in a future version.chat(ChatRequest chatRequest) Deprecated, for removal: This API element is subject to removal in a future version.This is the main API to interact with the chat model.Deprecated, for removal: This API element is subject to removal in a future version.provider()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
supportedCapabilities
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
supportedCapabilitiesin interfaceChatModel
-
chat
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatModelThis is the main API to interact with the chat model.- Specified by:
chatin interfaceChatModel- Parameters:
chatRequest- aChatRequest, containing all the inputs to the LLM- Returns:
- a
ChatResponse, containing all the outputs from the LLM
-
listeners
Deprecated, for removal: This API element is subject to removal in a future version. -
provider
Deprecated, for removal: This API element is subject to removal in a future version. -
builder
Deprecated, for removal: This API element is subject to removal in a future version.
-