fabric/vendors/openrouter/openrouter.go

17 lines
276 B
Go
Raw Normal View History

2024-09-03 18:19:33 +02:00
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
}