2024-08-22 22:15:57 +02:00
|
|
|
package groc
|
2024-08-16 15:43:27 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/danielmiessler/fabric/vendors/openai"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewClient() (ret *Client) {
|
|
|
|
ret = &Client{}
|
2024-09-13 11:10:17 +02:00
|
|
|
ret.Client = openai.NewClientCompatible("Groc", "https://api.groq.com/openai/v1", nil)
|
2024-08-16 15:43:27 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
type Client struct {
|
|
|
|
*openai.Client
|
|
|
|
}
|