重构 ModelProviders 面向对象设计 #4634
BrandonStudio
started this conversation in
RFC | 特性开发
Replies: 1 comment
-
我感觉继承类的方案不好,还是 createOpenAI('xAI') 这样的设计比较理想 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
client
、baseURL
)变为protected
,把可重写的私有字段/方法也变为protected
LobeOpenAICompatibleAI
,将工厂函数类生成转换为抽象父类派生。导出LobeOpenAICompatibleAI
并为其添加泛型Beta Was this translation helpful? Give feedback.
All reactions