fabric/vendors/groc/groq.go

16 lines
265 B
Go
Raw Normal View History

2024-08-22 20:15:57 +00:00
package groc
2024-08-16 19:43:27 +00:00
import (
"github.com/danielmiessler/fabric/vendors/openai"
)
func NewClient() (ret *Client) {
ret = &Client{}
2024-08-22 20:15:57 +00:00
ret.Client = openai.NewClientCompatible("Groq", "https://api.groq.com/openai/v1", nil)
2024-08-16 19:43:27 +00:00
return
}
type Client struct {
*openai.Client
}