类 OpenAICompatibleChatModel<T extends ChatConfig>
java.lang.Object
com.agentsflex.core.model.chat.BaseChatModel<T>
com.agentsflex.core.model.chat.OpenAICompatibleChatModel<T>
- 所有已实现的接口:
ChatModel
-
字段概要
从类继承的字段 com.agentsflex.core.model.chat.BaseChatModel
chatClient, chatRequestSpecBuilder, config -
构造器概要
构造器构造器说明OpenAICompatibleChatModel(T config) 构造一个聊天模型实例,不使用实例级拦截器。OpenAICompatibleChatModel(T config, List<ChatInterceptor> userInterceptors) 构造一个聊天模型实例,并指定实例级拦截器。 -
方法概要
从类继承的方法 com.agentsflex.core.model.chat.BaseChatModel
addInterceptor, addInterceptor, chat, chatStream, getConfig, getInterceptors, setChatClient, setChatRequestSpecBuilder从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.agentsflex.core.model.chat.ChatModel
chat, chat, chat, chatStream, chatStream, chatStream
-
构造器详细资料
-
OpenAICompatibleChatModel
构造一个聊天模型实例,不使用实例级拦截器。- 参数:
config- 聊天模型配置
-
OpenAICompatibleChatModel
构造一个聊天模型实例,并指定实例级拦截器。实例级拦截器会与全局拦截器(通过
GlobalChatInterceptors注册)合并, 执行顺序为:可观测性拦截器 → 全局拦截器 → 实例拦截器。- 参数:
config- 聊天模型配置userInterceptors- 实例级拦截器列表
-
-
方法详细资料
-
getChatClient
- 覆盖:
getChatClient在类中BaseChatModel<T extends ChatConfig>
-
getChatRequestSpecBuilder
- 覆盖:
getChatRequestSpecBuilder在类中BaseChatModel<T extends ChatConfig>
-
buildChatRequestSpecBuilder
-
buildChatClient
-