Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #75

Merged
merged 9 commits into from
Jun 17, 2024
Merged

Dev #75

merged 9 commits into from
Jun 17, 2024

Commits on May 28, 2024

  1. Configuration menu
    Copy the full SHA
    174dde9 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. feat: refactor file organization and dependencies

    This commit reorganizes several files and updates dependencies to enhance project structure and efficiency:
    
    - Moved files:
      - AccAuthPool.go to AccessTokenPool.go
      - AccTokens.go to AccTokens.go
      - apiReq.go to apiReq.go
      - apiRespJson.go to apiRespJson.go
      - apiRespStream.go to apiRespStream.go
      - chatReq.go to chatReq.go
      - chatResp.go to chatResp.go
      - completions.go to completions.go
      - FreeChat.go to FreeChat.go
    
    - Updated Docker build YAML:
      - Fixed typo in cache-from option.
      - Modified cache-to to correct syntax.
    
    - Refactored common.go:
      - Removed unused imports and functions.
      - Added logger configuration options for improved logging performance.
    
    - Updated config.go:
      - Corrected import path for AccessTokenPool.
    
    - Updated FreeChat.go:
      - Updated import paths to reflect AccessTokenPool.
    
    - Updated go.mod and go.sum:
      - Updated dependencies for tls_client_httpi, tls-client, and go-logger.
    
    These changes optimize file structure, correct configuration settings, and update dependencies to latest versions for better project maintenance and performance.
    aurorax-neo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    b536ee0 View commit details
    Browse the repository at this point in the history
  2. fix: Corrected syntax and added missing struct fields in chatReq.go

    … and `util.go`
    
    - Fixed syntax issues and added `ForceUseSse` and `FaceUseSse` fields in `chatReq.go`.
    - Initialized `ForceUseSse` as `false` and `FaceUseSse` as `true` in `util.go`.
    aurorax-neo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    68729d7 View commit details
    Browse the repository at this point in the history
  3. refactor: Update YAML tags and methods for AccessTokenPool

    - Added YAML tags (`yaml:"token,omitempty"`, `yaml:"expires_at,omitempty"`, `yaml:"-"`) to `Token`, `ExpiresAt`, and `CanUseAt` fields in `AccessTokenPool.go`.
    - Renamed methods:
      - `AddToken` to `AddAccessToken` in `AccessTokenPool.go`.
      - `AppendTokens` to `AppendAccessTokens` in `AccessTokenPool.go`.
    - Introduced `IsFileExist` and `ReadFile` functions in `common.go` to handle file existence check and file reading, respectively.
    - Updated `config.go` to use `TokensFile` instead of `AccessTokens` and load tokens from the file specified in `TOKENS_FILE`.
    - Adjusted README.md to reflect changes related to `TOKENS_FILE` and removed references to `ACCESS_TOKENS`.
    - Modified `util.go` to update `ForceUseSse` and `FaceUseSse` values.
    
    These changes optimize YAML handling, improve file operations, and update method names for clarity and consistency.
    aurorax-neo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    82e1ff9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a861180 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    507f682 View commit details
    Browse the repository at this point in the history
  6. chore: update .gitignore to reflect file extension change from `.ya…

    …ml` to `.yml`
    
    fix: enhance conditional logic in `AccessTokenPool.go` to include expiration check
    
    refactor: improve `FreeChat.go` to handle token retrieval and error case more efficiently
    
    docs: update README.md for clarity on token usage and error handling
    aurorax-neo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    6a12204 View commit details
    Browse the repository at this point in the history
  7. chore: update dependencies to latest versions

    Updated `go.mod` and `go.sum` to reflect changes:
    - Removed `github.com/gorilla/websocket v1.5.1` from `go.mod`.
    - Added `gopkg.in/yaml.v3 v3.0.1` to `go.mod`.
    - Removed entries for `github.com/donnie4w/go-logger v0.24.1` from `go.sum`.
    - Removed `github.com/gorilla/websocket v1.5.1` entries from `go.sum`.
    aurorax-neo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    c02a199 View commit details
    Browse the repository at this point in the history
  8. fix: update deployment option from Koyeb to Vercel in README.md

    Adjusted deployment option from Koyeb to Vercel and added Vercel deployment button.
    aurorax-neo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    500423a View commit details
    Browse the repository at this point in the history