Skip to content

Commit

Permalink
chore: 修正 arm64 编译指令
Browse files Browse the repository at this point in the history
  • Loading branch information
bincooo committed Jun 9, 2024
1 parent 3bef981 commit b70c7de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 0 additions & 7 deletions internal/plugin/llm/interpreter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b70c7de

Please sign in to comment.