From 7e584177619c429116503863f82a9d0eb1d8f672 Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Sat, 30 Mar 2024 15:59:15 +0800 Subject: [PATCH] Update client.go (#30) --- client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.go b/client/client.go index 7fb1efa..4fd268f 100644 --- a/client/client.go +++ b/client/client.go @@ -16,6 +16,7 @@ func New(cfg ai.ClientConfig) (client ai.AI, err error) { ai.WithAPIKey(cfg.APIKey), ai.WithEndpoint(cfg.Endpoint), ai.WithProxy(cfg.Proxy), + ai.WithModel(cfg.Model), ai.WithModelConfig(cfg.ModelConfig), } if cfg.Limit != nil {