2024-08-16 15:43:27 -04:00
|
|
|
package grocq
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/danielmiessler/fabric/vendors/openai"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewClient() (ret *Client) {
|
|
|
|
ret = &Client{}
|
2024-08-21 00:11:18 +02:00
|
|
|
ret.Client = openai.NewClientCompatible("Grocq", "https://api.groq.com/openai/v1", nil)
|
2024-08-16 15:43:27 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
type Client struct {
|
|
|
|
*openai.Client
|
|
|
|
}
|