mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-07 05:43:01 +08:00
18 lines
375 B
Python
18 lines
375 B
Python
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)
|
|
|
|
|