28 lines
516 B
Go
28 lines
516 B
Go
package cursor
|
|
|
|
import (
|
|
"context"
|
|
"cursor-api-proxy/pkg/domain/entity"
|
|
"cursor-api-proxy/internal/config"
|
|
)
|
|
|
|
type Provider struct {
|
|
cfg config.BridgeConfig
|
|
}
|
|
|
|
func NewProvider(cfg config.BridgeConfig) *Provider {
|
|
return &Provider{cfg: cfg}
|
|
}
|
|
|
|
func (p *Provider) Name() string {
|
|
return "cursor"
|
|
}
|
|
|
|
func (p *Provider) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func (p *Provider) Generate(ctx context.Context, model string, messages []entity.Message, tools []entity.Tool, cb func(entity.StreamChunk)) error {
|
|
return nil
|
|
}
|