fabric/vendors/siliconcloud/siliconcloud.go

16 lines
280 B
Go
Raw Normal View History

2024-09-03 14:11:57 +00:00
package siliconcloud
import (
"github.com/danielmiessler/fabric/vendors/openai"
)
func NewClient() (ret *Client) {
ret = &Client{}
ret.Client = openai.NewClientCompatible("SiliconCloud", "https://api.siliconflow.cn/v1", nil)
return
}
type Client struct {
*openai.Client
}