Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
18
backend/sdk/translator/builtin/builtin.go
Normal file
18
backend/sdk/translator/builtin/builtin.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// Package builtin exposes the built-in translator registrations for SDK users.
|
||||
package builtin
|
||||
|
||||
import (
|
||||
sdktranslator "github.com/router-for-me/CLIProxyAPI/v7/sdk/translator"
|
||||
|
||||
_ "github.com/router-for-me/CLIProxyAPI/v7/internal/translator"
|
||||
)
|
||||
|
||||
// Registry exposes the default registry populated with all built-in translators.
|
||||
func Registry() *sdktranslator.Registry {
|
||||
return sdktranslator.Default()
|
||||
}
|
||||
|
||||
// Pipeline returns a pipeline that already contains the built-in translators.
|
||||
func Pipeline() *sdktranslator.Pipeline {
|
||||
return sdktranslator.NewPipeline(sdktranslator.Default())
|
||||
}
|
||||
Loading…
Reference in a new issue