76ba500417
CI / docker (push) Successful in 2m4s
OpenAI-compatible AI gateway with Vue admin UI, multi-provider egress, ingress key governance, monitoring, and security controls. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
309 B
Go
17 lines
309 B
Go
package custom
|
|
|
|
import (
|
|
"github.com/rose_cat707/luminary/internal/provider/openai"
|
|
)
|
|
|
|
// Custom providers use OpenAI-compatible API at a custom base URL.
|
|
type Client struct {
|
|
*openai.Client
|
|
}
|
|
|
|
func New() *Client {
|
|
return &Client{Client: openai.New()}
|
|
}
|
|
|
|
func (c *Client) Type() string { return "custom" }
|