Class GitHubModelsStreamingChatModel
java.lang.Object
dev.langchain4j.model.github.GitHubModelsStreamingChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.StreamingChatModel
public class GitHubModelsStreamingChatModel
extends Object
implements dev.langchain4j.model.chat.StreamingChatModel
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 and ChatCompletionsAsyncClient 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 Classes -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.StreamingChatModel
chat, chat, defaultRequestParameters, doChat, supportedCapabilities
-
Method Details
-
chat
public void chat(dev.langchain4j.model.chat.request.ChatRequest request, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler) - Specified by:
chatin interfacedev.langchain4j.model.chat.StreamingChatModel
-
listeners
- Specified by:
listenersin interfacedev.langchain4j.model.chat.StreamingChatModel
-
provider
public dev.langchain4j.model.ModelProvider provider()- Specified by:
providerin interfacedev.langchain4j.model.chat.StreamingChatModel
-
builder
-