File size: 375 Bytes
6cfe55f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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)
|