Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions cmd/fetch_antigravity_models/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
"strings"
"time"

"github.com/router-for-me/CLIProxyAPI/v7/internal/config"
"github.com/router-for-me/CLIProxyAPI/v7/internal/logging"
"github.com/router-for-me/CLIProxyAPI/v7/internal/misc"
"github.com/router-for-me/CLIProxyAPI/v7/internal/util"
sdkauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/auth"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/proxyutil"
"github.com/awsl-project/CLIProxyAPI/v7/internal/config"
"github.com/awsl-project/CLIProxyAPI/v7/internal/logging"
"github.com/awsl-project/CLIProxyAPI/v7/internal/misc"
"github.com/awsl-project/CLIProxyAPI/v7/internal/util"
sdkauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/auth"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/proxyutil"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson"
)
Expand Down
14 changes: 7 additions & 7 deletions cmd/fetch_codex_models/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ import (
"strings"
"time"

codexauth "github.com/router-for-me/CLIProxyAPI/v7/internal/auth/codex"
"github.com/router-for-me/CLIProxyAPI/v7/internal/config"
"github.com/router-for-me/CLIProxyAPI/v7/internal/logging"
"github.com/router-for-me/CLIProxyAPI/v7/internal/util"
sdkauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/auth"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/proxyutil"
codexauth "github.com/awsl-project/CLIProxyAPI/v7/internal/auth/codex"
"github.com/awsl-project/CLIProxyAPI/v7/internal/config"
"github.com/awsl-project/CLIProxyAPI/v7/internal/logging"
"github.com/awsl-project/CLIProxyAPI/v7/internal/util"
sdkauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/auth"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/proxyutil"
log "github.com/sirupsen/logrus"
)

Expand Down
40 changes: 20 additions & 20 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ import (
"strings"
"time"

configaccess "github.com/awsl-project/CLIProxyAPI/v7/internal/access/config_access"
"github.com/awsl-project/CLIProxyAPI/v7/internal/api"
"github.com/awsl-project/CLIProxyAPI/v7/internal/buildinfo"
"github.com/awsl-project/CLIProxyAPI/v7/internal/cmd"
"github.com/awsl-project/CLIProxyAPI/v7/internal/config"
"github.com/awsl-project/CLIProxyAPI/v7/internal/home"
"github.com/awsl-project/CLIProxyAPI/v7/internal/homeplugins"
"github.com/awsl-project/CLIProxyAPI/v7/internal/logging"
"github.com/awsl-project/CLIProxyAPI/v7/internal/managementasset"
"github.com/awsl-project/CLIProxyAPI/v7/internal/misc"
"github.com/awsl-project/CLIProxyAPI/v7/internal/pluginhost"
"github.com/awsl-project/CLIProxyAPI/v7/internal/redisqueue"
"github.com/awsl-project/CLIProxyAPI/v7/internal/registry"
"github.com/awsl-project/CLIProxyAPI/v7/internal/safemode"
"github.com/awsl-project/CLIProxyAPI/v7/internal/store"
_ "github.com/awsl-project/CLIProxyAPI/v7/internal/translator"
"github.com/awsl-project/CLIProxyAPI/v7/internal/tui"
"github.com/awsl-project/CLIProxyAPI/v7/internal/util"
sdkAuth "github.com/awsl-project/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/auth"
"github.com/joho/godotenv"
configaccess "github.com/router-for-me/CLIProxyAPI/v7/internal/access/config_access"
"github.com/router-for-me/CLIProxyAPI/v7/internal/api"
"github.com/router-for-me/CLIProxyAPI/v7/internal/buildinfo"
"github.com/router-for-me/CLIProxyAPI/v7/internal/cmd"
"github.com/router-for-me/CLIProxyAPI/v7/internal/config"
"github.com/router-for-me/CLIProxyAPI/v7/internal/home"
"github.com/router-for-me/CLIProxyAPI/v7/internal/homeplugins"
"github.com/router-for-me/CLIProxyAPI/v7/internal/logging"
"github.com/router-for-me/CLIProxyAPI/v7/internal/managementasset"
"github.com/router-for-me/CLIProxyAPI/v7/internal/misc"
"github.com/router-for-me/CLIProxyAPI/v7/internal/pluginhost"
"github.com/router-for-me/CLIProxyAPI/v7/internal/redisqueue"
"github.com/router-for-me/CLIProxyAPI/v7/internal/registry"
"github.com/router-for-me/CLIProxyAPI/v7/internal/safemode"
"github.com/router-for-me/CLIProxyAPI/v7/internal/store"
_ "github.com/router-for-me/CLIProxyAPI/v7/internal/translator"
"github.com/router-for-me/CLIProxyAPI/v7/internal/tui"
"github.com/router-for-me/CLIProxyAPI/v7/internal/util"
sdkAuth "github.com/router-for-me/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/auth"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/server/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/router-for-me/CLIProxyAPI/v7/internal/config"
"github.com/awsl-project/CLIProxyAPI/v7/internal/config"
)

func TestShouldEnableExampleAPIKeySafeMode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/validate_codex_models/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strings"

"github.com/router-for-me/CLIProxyAPI/v7/internal/registry"
"github.com/awsl-project/CLIProxyAPI/v7/internal/registry"
)

func main() {
Expand Down
16 changes: 8 additions & 8 deletions examples/custom-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import (
"strings"
"time"

"github.com/awsl-project/CLIProxyAPI/v7/sdk/api"
sdkAuth "github.com/awsl-project/CLIProxyAPI/v7/sdk/auth"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy"
coreauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/auth"
clipexec "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/executor"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/config"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/logging"
sdktr "github.com/awsl-project/CLIProxyAPI/v7/sdk/translator"
"github.com/gin-gonic/gin"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/api"
sdkAuth "github.com/router-for-me/CLIProxyAPI/v7/sdk/auth"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy"
coreauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/auth"
clipexec "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/executor"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/config"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/logging"
sdktr "github.com/router-for-me/CLIProxyAPI/v7/sdk/translator"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions examples/http-request/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"strings"
"time"

coreauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/auth"
clipexec "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/executor"
coreauth "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/auth"
clipexec "github.com/awsl-project/CLIProxyAPI/v7/sdk/cliproxy/executor"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/auth/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/auth/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/auth/go

go 1.26
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"strings"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

type streamOrchestrationRunner func(context.Context, pluginapi.ExecutorRequest, string, string) error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"
"strings"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

type executionPlan struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

func TestBuildExecutionPlansForExecuteRespectsRouteTavily(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/claude-web-search-router/go/fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"strings"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

// defaultWebSearchFallbackChain is the ordered backend try list when route=fallback.
Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/claude-web-search-router/go/fallback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/router-for-me/CLIProxyAPI/v7/internal/registry"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/internal/registry"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

func claudeWebSearchRouteBody(t *testing.T) []byte {
Expand Down
6 changes: 3 additions & 3 deletions examples/plugin/claude-web-search-router/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/claude-web-search-router/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/claude-web-search-router/go

go 1.26.0

require (
github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
github.com/awsl-project/CLIProxyAPI/v7 v7.0.0
github.com/tidwall/gjson v1.18.0
gopkg.in/yaml.v3 v3.0.1
)
Expand All @@ -15,4 +15,4 @@ require (
golang.org/x/sys v0.38.0 // indirect
)

replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
replace github.com/awsl-project/CLIProxyAPI/v7 => ../../../..
4 changes: 2 additions & 2 deletions examples/plugin/claude-web-search-router/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ import (
"sync/atomic"
"unsafe"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
"gopkg.in/yaml.v3"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"strings"

"github.com/router-for-me/CLIProxyAPI/v7/internal/registry"
"github.com/awsl-project/CLIProxyAPI/v7/internal/registry"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/router-for-me/CLIProxyAPI/v7/internal/registry"
"github.com/awsl-project/CLIProxyAPI/v7/internal/registry"
)

func TestResolveCodexWebSearchTargetModelNeverUsesClaudeName(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/claude-web-search-router/go/stream_forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"
"strings"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

type rpcStreamEmitRequest struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

func TestLooksLikeOpenAIResponsesSSE(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/claude-web-search-router/go/tavily_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/tidwall/gjson"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/cli/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/cli/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/cli/go

go 1.26
6 changes: 3 additions & 3 deletions examples/plugin/codex-service-tier/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/codex-service-tier/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/codex-service-tier/go

go 1.26.0

require (
github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
github.com/awsl-project/CLIProxyAPI/v7 v7.0.0
github.com/tidwall/sjson v1.2.5
gopkg.in/yaml.v3 v3.0.1
)
Expand All @@ -14,4 +14,4 @@ require (
github.com/tidwall/pretty v1.2.0 // indirect
)

replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
replace github.com/awsl-project/CLIProxyAPI/v7 => ../../../..
4 changes: 2 additions & 2 deletions examples/plugin/codex-service-tier/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import (
"sync/atomic"
"unsafe"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/tidwall/sjson"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/executor/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/executor/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/executor/go

go 1.26
6 changes: 3 additions & 3 deletions examples/plugin/frontend-auth-exclusive/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/frontend-auth-exclusive/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/frontend-auth-exclusive/go

go 1.26.0

require github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
require github.com/awsl-project/CLIProxyAPI/v7 v7.0.0

replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
replace github.com/awsl-project/CLIProxyAPI/v7 => ../../../..
4 changes: 2 additions & 2 deletions examples/plugin/frontend-auth-exclusive/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import (
"encoding/json"
"unsafe"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

type envelope struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/frontend-auth/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/frontend-auth/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/frontend-auth/go

go 1.26
6 changes: 3 additions & 3 deletions examples/plugin/host-callback-auth-files/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/host-callback-auth-files/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/host-callback-auth-files/go

go 1.26.0

require github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
require github.com/awsl-project/CLIProxyAPI/v7 v7.0.0

replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
replace github.com/awsl-project/CLIProxyAPI/v7 => ../../../..
4 changes: 2 additions & 2 deletions examples/plugin/host-callback-auth-files/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ import (
"strings"
"unsafe"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/host-callback/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/host-callback/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/host-callback/go

go 1.26
6 changes: 3 additions & 3 deletions examples/plugin/host-model-callback/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/host-model-callback/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/host-model-callback/go

go 1.26.0

require github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
require github.com/awsl-project/CLIProxyAPI/v7 v7.0.0

replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
replace github.com/awsl-project/CLIProxyAPI/v7 => ../../../..
4 changes: 2 additions & 2 deletions examples/plugin/host-model-callback/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ import (
"strings"
"unsafe"

"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginapi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginabi"
"github.com/awsl-project/CLIProxyAPI/v7/sdk/pluginapi"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/management-api/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/management-api/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/management-api/go

go 1.26
2 changes: 1 addition & 1 deletion examples/plugin/model/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/model/go
module github.com/awsl-project/CLIProxyAPI/v7/examples/plugin/model/go

go 1.26
Loading
Loading