diff --git a/Makefile b/Makefile index aef6e2bf..881ccb15 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ build-linux: copy ${BUILD_ENV} GOARCH=amd64 GOOS=linux go build ${LDFLAGS} -o bin/linux/${TARGET_EXEC} -trimpath cmd/command.go build-linux-arm64: copy - ${BUILD_ENV} GOOS=linux GOARCH=arm GOARM=6 go build ${LDFLAGS} -o bin/linux/${TARGET_EXEC}-arm64 -trimpath cmd/command.go + ${BUILD_ENV} GOARCH=arm64 GOOS=linux go build ${LDFLAGS} -o bin/linux/${TARGET_EXEC}-arm64 -trimpath cmd/command.go build-osx: copy ${BUILD_ENV} GOARCH=amd64 GOOS=darwin go build ${LDFLAGS} -o bin/osx/${TARGET_EXEC} -trimpath cmd/command.go diff --git a/config.yaml b/config.yaml index 06b93f92..1a10320d 100644 --- a/config.yaml +++ b/config.yaml @@ -34,7 +34,7 @@ llm: # scene: 2 interpreter: - baseSocket: ws://127.0.0.1:8000 + baseSocket: ws://192.168.0.3:8082/interpreter useProxy: false custom-llm: diff --git a/internal/plugin/llm/interpreter/adapter.go b/internal/plugin/llm/interpreter/adapter.go index 8272f6f8..0f9b1709 100644 --- a/internal/plugin/llm/interpreter/adapter.go +++ b/internal/plugin/llm/interpreter/adapter.go @@ -40,15 +40,8 @@ func (API) Completion(ctx *gin.Context) { matchers = common.GetGinMatchers(ctx) ) - retry := 3 -label: conn, tokens, err := fetch(ctx, proxies, completion) if err != nil { - if retry > 0 { - retry-- - goto label - } - logger.Error(err) response.Error(ctx, -1, err) return