Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
madoka committed Apr 2, 2024
1 parent a17b6e2 commit fde3f53
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tools/authenticator/authenticated_accounts.txt
tools/authenticator/access_tokens.txt
*.txt
*.json
freechatgpt
aurora
chatgpttoapi
tools/authenticator/.proxies.txt.swp
.env
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20.3-alpine as builder
FROM golang:1.21 AS builder

ENV CGO_ENABLED=0

Expand All @@ -8,14 +8,14 @@ COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN go build -o /app/Aurora .
RUN go build -o /app/aurora .

FROM scratch
FROM alpine:latest

WORKDIR /app

COPY --from=builder /app/Aurora /app/Aurora
COPY --from=builder /app/aurora /app/aurora

EXPOSE 8080

CMD [ "./Aurora" ]
CMD [ "./aurora" ]
4 changes: 2 additions & 2 deletions conversion/requests/chatgpt/convert.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package chatgpt

import (
chatgpt_types "aurora/typings/chatgpt"
official_types "aurora/typings/official"
"fmt"
chatgpt_types "freechatgpt/typings/chatgpt"
official_types "freechatgpt/typings/official"
"strings"

arkose "github.com/xqdoo00o/funcaptcha"
Expand Down
6 changes: 3 additions & 3 deletions conversion/response/chatgpt/convert.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package chatgpt

import (
"freechatgpt/typings"
chatgpt_types "freechatgpt/typings/chatgpt"
official_types "freechatgpt/typings/official"
"aurora/typings"
chatgpt_types "aurora/typings/chatgpt"
official_types "aurora/typings/official"
"strings"
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module freechatgpt
module aurora

go 1.20
go 1.21

require (
github.com/acheong08/endless v0.0.0-20230615162514-90545c7793fd
Expand Down
6 changes: 3 additions & 3 deletions handlers.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
chatgpt_request_converter "freechatgpt/conversion/requests/chatgpt"
chatgpt "freechatgpt/internal/chatgpt"
official_types "freechatgpt/typings/official"
chatgpt_request_converter "aurora/conversion/requests/chatgpt"
chatgpt "aurora/internal/chatgpt"
official_types "aurora/typings/official"
"sync"

"github.com/gin-gonic/gin"
Expand Down
8 changes: 4 additions & 4 deletions internal/chatgpt/request.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package chatgpt

import (
"aurora/typings"
chatgpt_types "aurora/typings/chatgpt"
"bufio"
"bytes"
"context"
"encoding/base64"
"encoding/json"
"freechatgpt/typings"
chatgpt_types "freechatgpt/typings/chatgpt"
"io"
"net/url"
"os"
Expand All @@ -23,9 +23,9 @@ import (
"github.com/bogdanfinn/tls-client/profiles"
"github.com/gin-gonic/gin"

chatgpt_response_converter "freechatgpt/conversion/response/chatgpt"
chatgpt_response_converter "aurora/conversion/response/chatgpt"

official_types "freechatgpt/typings/official"
official_types "aurora/typings/official"
)

type connInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"freechatgpt/internal/tokens"
"aurora/internal/tokens"
"github.com/acheong08/endless"
"github.com/gin-gonic/gin"
"github.com/joho/godotenv"
Expand Down

0 comments on commit fde3f53

Please sign in to comment.