mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
16 lines
265 B
Go
16 lines
265 B
Go
package groc
|
|
|
|
import (
|
|
"github.com/danielmiessler/fabric/vendors/openai"
|
|
)
|
|
|
|
func NewClient() (ret *Client) {
|
|
ret = &Client{}
|
|
ret.Client = openai.NewClientCompatible("Groq", "https://api.groq.com/openai/v1", nil)
|
|
return
|
|
}
|
|
|
|
type Client struct {
|
|
*openai.Client
|
|
}
|