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