From 27b98afba43f4514b13a3df839653e61daa08675 Mon Sep 17 00:00:00 2001 From: Roman Glushko Date: Wed, 19 Jun 2024 22:01:53 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20Switched=20to=20the=20new=20doc?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b3403d65..f1d5e319 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

Glide: Cloud-Native LLM Gateway for Seamless LLMOps

CodeCov Discord - Glide Docs + Glide Docs License ArtifactHub FOSSA Status @@ -26,7 +26,7 @@ model failover, caching, key management, etc. -Check out our [documentation](https://glide.einstack.ai)! +Check out our [documentation](https://docs.einstack.ai/glide/)! ## Features @@ -108,7 +108,7 @@ Finally, Glide comes with OpenAPI documentation that is accessible via http://12 That's it 🙌 -Use [our documentation](https://glide.einstack.ai) to further learn about Glide capabilities and configs. +Use [our documentation](https://docs.einstack.ai/glide/) to further learn about Glide capabilities and configs. --- @@ -217,7 +217,7 @@ To let you work with Glide's API with ease, we are going to provide you with SDK Routers are a core functionality of Glide. Think of routers as a group of models with some predefined logic. For example, the resilience router allows a user to define a set of backup models should the initial model fail. Another example, would be to leverage the least-latency router to make latency sensitive LLM calls in the most efficient manner. -Detailed info on routers can be found [here](https://glide.einstack.ai/essentials/routers). +Detailed info on routers can be found [here](https://docs.einstack.ai/glide/docs/routers). #### Available Routers From b7e7db4c2aa825c8ab2f9e28d3385a0e740e3979 Mon Sep 17 00:00:00 2001 From: Shoaib Akhtar Date: Sun, 23 Jun 2024 20:03:48 +0530 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=92=20Updated=20golang=20to=201.22?= =?UTF-8?q?.4=20to=20address=20CVE-2024-24790=20(#276)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yaml | 10 +++++----- .github/workflows/release.yaml | 2 +- .github/workflows/vuln.yaml | 2 +- .go-version | 2 +- go.mod | 2 +- images/alpine.Dockerfile | 2 +- images/distroless.Dockerfile | 2 +- images/redhat.Dockerfile | 2 +- images/ubuntu.Dockerfile | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e504ec17..4addd769 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Install @@ -56,7 +56,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Build run: go build -v ./... @@ -70,7 +70,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Install nilaway @@ -95,7 +95,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Test @@ -121,7 +121,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Generate OpenAPI Schema diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 69f01d09..e3d1d6ab 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.22 + go-version: 1.22.4 - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/vuln.yaml b/.github/workflows/vuln.yaml index aa26598c..d24340c1 100644 --- a/.github/workflows/vuln.yaml +++ b/.github/workflows/vuln.yaml @@ -27,7 +27,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.22.1' + go-version: '1.22.4' check-latest: true - name: Checkout diff --git a/.go-version b/.go-version index 71f7f51d..be02b337 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.22 +1.22.4 \ No newline at end of file diff --git a/go.mod b/go.mod index 1b24d43e..da0c75a3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/EinStack/glide -go 1.22.1 +go 1.22.4 require ( github.com/aws/aws-sdk-go-v2 v1.24.1 diff --git a/images/alpine.Dockerfile b/images/alpine.Dockerfile index e9ab71c4..31d48df5 100644 --- a/images/alpine.Dockerfile +++ b/images/alpine.Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.22-alpine as build +FROM golang:1.22.4-alpine as build ARG VERSION ARG COMMIT diff --git a/images/distroless.Dockerfile b/images/distroless.Dockerfile index 249b8c62..85f0683e 100644 --- a/images/distroless.Dockerfile +++ b/images/distroless.Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.22-alpine as build +FROM golang:1.22.4-alpine as build ARG VERSION ARG COMMIT diff --git a/images/redhat.Dockerfile b/images/redhat.Dockerfile index aacdc0aa..4872adcb 100644 --- a/images/redhat.Dockerfile +++ b/images/redhat.Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.22-alpine as build +FROM golang:1.22.4-alpine as build ARG VERSION ARG COMMIT diff --git a/images/ubuntu.Dockerfile b/images/ubuntu.Dockerfile index 78c8e024..3daf566a 100644 --- a/images/ubuntu.Dockerfile +++ b/images/ubuntu.Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM golang:1.22-alpine as build +FROM golang:1.22.4-alpine as build ARG VERSION ARG COMMIT From 08ee414e5647b69c394eb22c040f5af0888dc8a1 Mon Sep 17 00:00:00 2001 From: Pablo Date: Sun, 23 Jun 2024 22:34:05 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A7=20Adds=20support=20for=20Air?= =?UTF-8?q?=20live=20reloading=20(#270)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .air.toml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 .air.toml diff --git a/.air.toml b/.air.toml new file mode 100644 index 00000000..40b0a72e --- /dev/null +++ b/.air.toml @@ -0,0 +1,51 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = ["-c ./config.dev.yaml"] + bin = "./dist/glide" + cmd = "make build" + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = ["_test.go"] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = [] + include_ext = ["go", "tpl", "tmpl", "html"] + include_file = [] + kill_delay = "0s" + log = "build-errors.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 500 + send_interrupt = false + stop_on_error = false + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "cyan" + +[log] + main_only = false + time = false + +[misc] + clean_on_exit = false + +[proxy] + app_port = 0 + enabled = false + proxy_port = 0 + +[screen] + clear_on_rebuild = false + keep_scroll = true diff --git a/Makefile b/Makefile index 1151234f..d2782e71 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ vuln: install-checkers ## Check for vulnerabilities @$(CHECKER_BIN)/gosec -quiet -exclude=G104 ./... run: ## Run Glide - @go run -ldflags $(LDFLAGS_COMMON) main.go -c ./config.dev.yaml + @air -c .air.toml build: ## Build Glide @echo "🔨Building Glide binary.."