mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-12 16:11:34 +08:00
:feat 新增模型配置页面和相关功能
- 新增模型配置页面组件和路由 - 实现模型配置表单和相关逻辑- 添加全局配置入口和功能- 优化首页布局和样式- 新增 404 页面组件 - 更新部分组件样式和结构
This commit is contained in:
17
backend/app/gpt/test.py
Normal file
17
backend/app/gpt/test.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from app.models.model_config import ModelConfig
|
||||
|
||||
if __name__ == '__main__':
|
||||
from app.gpt.gpt_factory import GPTFactory
|
||||
# 构建模型config
|
||||
config=ModelConfig(
|
||||
id='asas',
|
||||
api_key='',
|
||||
base_url='',
|
||||
model_name="gpt-4o",
|
||||
provider='openai',
|
||||
name='gpt-4o'
|
||||
)
|
||||
# 构建GPT
|
||||
gpt=GPTFactory().from_config(config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user