Class GitHubModelsChatModel

java.lang.Object
dev.langchain4j.model.github.GitHubModelsChatModel
All Implemented Interfaces:
dev.langchain4j.model.chat.ChatModel

@Deprecated(since="1.10.0", forRemoval=true) public class GitHubModelsChatModel extends Object implements dev.langchain4j.model.chat.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 Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    dev.langchain4j.model.chat.response.ChatResponse
    chat(dev.langchain4j.model.chat.request.ChatRequest chatRequest)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    List<dev.langchain4j.model.chat.listener.ChatModelListener>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    dev.langchain4j.model.ModelProvider
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Set<dev.langchain4j.model.chat.Capability>
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.langchain4j.model.chat.ChatModel

    chat, chat, chat, chat, defaultRequestParameters, doChat
  • Method Details

    • supportedCapabilities

      public Set<dev.langchain4j.model.chat.Capability> supportedCapabilities()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      supportedCapabilities in interface dev.langchain4j.model.chat.ChatModel
    • chat

      public dev.langchain4j.model.chat.response.ChatResponse chat(dev.langchain4j.model.chat.request.ChatRequest chatRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      chat in interface dev.langchain4j.model.chat.ChatModel
    • listeners

      public List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      listeners in interface dev.langchain4j.model.chat.ChatModel
    • provider

      public dev.langchain4j.model.ModelProvider provider()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      provider in interface dev.langchain4j.model.chat.ChatModel
    • builder

      public static GitHubModelsChatModel.Builder builder()
      Deprecated, for removal: This API element is subject to removal in a future version.