mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
16 lines
280 B
Go
16 lines
280 B
Go
|
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
|
||
|
}
|