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

📦 Release: v0.0.1-rc.1 #93

Merged
merged 74 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
1154fe8
#6: Added a basic structure of the project (#7)
roma-glushko Dec 9, 2023
72e75e8
Feature/3 provider openai (#13)
mkrueger12 Dec 10, 2023
27f7118
🛠️ #12 Init Glide CLI (#16)
roma-glushko Dec 11, 2023
bd1d4d3
3 provider openai (#17)
mkrueger12 Dec 12, 2023
dd17fc6
15 request body to ai api schema (#18)
mkrueger12 Dec 12, 2023
86c624c
24 refactor openai provider (#25)
mkrueger12 Dec 15, 2023
99ab0dc
#8 Setting up CI checks via GH Actions (#31)
roma-glushko Dec 19, 2023
23693c7
#14 🛠️ Inited Glide Logging (#30)
roma-glushko Dec 23, 2023
3d8062f
Removed the linter (#38)
roma-glushko Dec 24, 2023
639d144
#35: Updated README (#36)
roma-glushko Dec 25, 2023
04fb45b
Update README.md
roma-glushko Dec 25, 2023
9ddf477
Update README.md
roma-glushko Dec 25, 2023
6e363e5
#11: Init Config (#37)
roma-glushko Dec 27, 2023
c7d4aed
29 setup openai client (#34)
mkrueger12 Dec 27, 2023
67c00d8
Update dependencies and fix telemetry configuration
mkrueger12 Dec 27, 2023
b22b487
fix dependencies
mkrueger12 Dec 28, 2023
d4f2d77
#39: Report test coverage to CodeCov (#47)
roma-glushko Dec 30, 2023
52fb7fc
Disable codecov/patch job (#50)
roma-glushko Dec 31, 2023
c62579d
Fail on no config passed (#49)
roma-glushko Dec 31, 2023
ae3cf1b
#42 init router config (#48)
roma-glushko Jan 1, 2024
39f3c89
#22: Installed & exposed API documentation (#52)
roma-glushko Jan 1, 2024
4cde769
#51: Build routers & models based on provided config (#53)
roma-glushko Jan 1, 2024
0ebf9f2
Update README.md
mkrueger12 Jan 2, 2024
8900b8d
54 unified response (#55)
mkrueger12 Jan 2, 2024
4c4e4d7
Update README.md
mkrueger12 Jan 3, 2024
2cf73a5
#5: Cohere Client Init (#56)
mkrueger12 Jan 3, 2024
1499991
Update README.md
mkrueger12 Jan 3, 2024
ff3dc22
Update README.md
mkrueger12 Jan 3, 2024
4b66e2f
61 update openai client (#62)
mkrueger12 Jan 5, 2024
faf0e42
#4: Azure OpenAI Client Init (#57)
mkrueger12 Jan 5, 2024
5884ba4
#58: setup octoml client (#59)
mkrueger12 Jan 5, 2024
1940015
Update README.md
mkrueger12 Jan 5, 2024
c4621e0
Add files via upload
mkrueger12 Jan 5, 2024
15766e9
Update README.md
mkrueger12 Jan 5, 2024
a529329
Delete docs/images/octo.png
mkrueger12 Jan 5, 2024
af94490
Add files via upload
mkrueger12 Jan 5, 2024
5fa9930
Delete docs/images/octo.png
mkrueger12 Jan 5, 2024
7c24cc8
Add files via upload
mkrueger12 Jan 5, 2024
7f91656
Updated OpenAPI specs after finalizing the unified chat response (#64)
roma-glushko Jan 6, 2024
4090350
Add citation reference (#69)
roma-glushko Jan 8, 2024
6f221f4
Update README.md
roma-glushko Jan 9, 2024
7a58b35
🧘‍♀️ #43: Fallback Mechanism for Lang Models (#68)
roma-glushko Jan 11, 2024
124a1e7
Update README.md
mkrueger12 Jan 12, 2024
03f8d89
Create ROADMAP.md
mkrueger12 Jan 12, 2024
56d1f46
Update README.md
mkrueger12 Jan 12, 2024
3ae28d7
Update README.md
mkrueger12 Jan 12, 2024
d6fa702
Update README.md
mkrueger12 Jan 13, 2024
fa25efc
Fixing the codecov integration after org renaming (#74)
roma-glushko Jan 14, 2024
01f46d2
🛠️ #44 Implemented the round robin routing strategy (#71)
roma-glushko Jan 14, 2024
2957360
#72: Update AzureOAI client (#73)
mkrueger12 Jan 14, 2024
6aec59f
🛠️ #46 inited the least latency routing (#70)
roma-glushko Jan 14, 2024
5c233f6
🛠️ #45: Added WRR routing strategy (#75)
roma-glushko Jan 14, 2024
a01ce27
#77: onboard cohere and octo (#79)
mkrueger12 Jan 14, 2024
450b062
Update README.md
mkrueger12 Jan 15, 2024
37826a0
Update README.md
mkrueger12 Jan 15, 2024
c9fc311
Update README.md
mkrueger12 Jan 15, 2024
5603f43
Update ROADMAP.md
mkrueger12 Jan 15, 2024
4d72d6c
Update README.md
mkrueger12 Jan 15, 2024
c2e5a31
Debug providers (#80)
mkrueger12 Jan 16, 2024
34c90e9
Update README.md
mkrueger12 Jan 16, 2024
9d551e1
Update README.md
mkrueger12 Jan 16, 2024
e09ec1a
👩‍⚖️ Added the code of conduct
roma-glushko Jan 16, 2024
dfa45cd
👮‍♀️ Added the security policy
roma-glushko Jan 16, 2024
34f64a2
update gitignore
mkrueger12 Jan 16, 2024
27f32e8
Merge branch 'develop' of https://github.com/modelgateway/Glide into …
mkrueger12 Jan 16, 2024
e268d74
Fix: Update weighted_round_robin const
mkrueger12 Jan 17, 2024
3c9f8c7
Update README.md
mkrueger12 Jan 17, 2024
022623d
Update README.md
mkrueger12 Jan 17, 2024
5790d32
Update weighted_round_robin.go
mkrueger12 Jan 17, 2024
fa786ee
#60: anthropic client (#89)
mkrueger12 Jan 19, 2024
04a8b09
Update README.md
mkrueger12 Jan 19, 2024
8246dc8
👷 #9: Build binaries on tags (#88)
roma-glushko Jan 21, 2024
2918b68
Merge branch 'main' into develop
roma-glushko Jan 21, 2024
831e56b
📝 Added changelog file
roma-glushko Jan 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: lint

on:
workflow_call:

push:
branches:
- "main"
- "develop"

pull_request:
branches:
- "main"
- "develop"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true

- name: Install
run: go install mvdan.cc/gofumpt@latest

- name: Go Format
run: gofmt -s -w . && git diff --exit-code

- name: Gofumpt
run: gofumpt -l -w . && git diff --exit-code

- name: Go Vet
run: go vet ./...

- name: Go Tidy
run: go mod tidy && git diff --exit-code

- name: Go Mod
run: go mod download

- name: Go Mod Verify
run: go mod verify

build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true
- name: Build
run: go build -v ./...

static-checks:
name: Static Checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Install nilaway
run: go install go.uber.org/nilaway/cmd/nilaway@latest

- name: GolangCILint
uses: golangci/golangci-lint-action@v3.4.0
with:
version: latest
args: --timeout 5m

- name: Staticcheck
run: staticcheck ./...
# TODO: Ignore the issue in https://github.com/modelgateway/Glide/issues/32
# - name: Nilaway
# run: nilaway ./...

tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true

- name: Test
run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...

- name: Test
run: make test

- name: Upload Coverage
uses: codecov/codecov-action@v3
continue-on-error: true # we don't care if it fails
with:
token: ${{secrets.CODECOV_TOKEN}} # set in repository settings
file: ./coverage.txt # file from the previous step
fail_ci_if_error: false

api-docs:
name: OpenAPI Specs
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true

- name: Generate OpenAPI Schema
run: make docs-api && git diff --exit-code
75 changes: 75 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: release

on:
push:
tags:
- "*"

branches:
- main

permissions:
contents: write
packages: write

jobs:
lint:
uses: ./.github/workflows/lint.yaml
vuln:
uses: ./.github/workflows/vuln.yaml
release:
needs:
- lint
- vuln
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
BREW_TAP_PRIVATE_KEY: ${{ secrets.BREW_TAP_PRIVATE_KEY }}
images:
strategy:
matrix:
image:
- alpine
- ubuntu
- distroless
- redhat
runs-on: ubuntu-latest
needs:
- release
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: login into Github Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: build ${{ matrix.image }} image
working-directory: ./images
env:
BUILD_TIME: ${{needs.build_time.outputs.BUILD_TIME}}
run: VERSION=${{ github.ref_name }} COMMIT=$(git rev-parse --short "$GITHUB_SHA") make ${{ matrix.image }}

- name: publish ${{ matrix.image }} image to Github Container Registry
working-directory: ./images
run: VERSION=${{ github.ref_name }} make publish-ghcr-${{ matrix.image }}
46 changes: 46 additions & 0 deletions .github/workflows/vuln.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: vuln

on:
workflow_call:

push:
branches:
- "main"
- "develop"

pull_request:
branches:
- "main"
- "develop"

schedule:
- cron: '0 10 * * 1' # run "At 10:00 on Monday"

jobs:
run:
name: Vulnerability Check
runs-on: ubuntu-latest
timeout-minutes: 5
env:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
check-latest: true

- name: Checkout
uses: actions/checkout@v3

- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest

- name: Install gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest

- name: Govulncheck
run: govulncheck -test ./...

- name: Govulncheck
run: gosec ./...
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea
dist
.env
config.yaml
bin
glide
tmp
coverage.txt
precommit.txt
.vscode/settings.json
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.21
42 changes: 42 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
output:
# Make output more digestible with quickfix in vim/emacs/etc.
sort-results: true
print-issued-lines: false

linters:
enable:
- nolintlint
- revive
- staticcheck
- asasalint
- bodyclose
- contextcheck
- cyclop
- dupword
- errname
- exhaustive
- loggercheck
- misspell
- nestif
- perfsprint
- prealloc
- predeclared
- testifylint
- unconvert
- usestdlibvars
- wsl

linters-settings:
govet:
# These govet checks are disabled by default, but they're useful.
enable:
- niliness
- reflectvaluecompare
- sortslice
- unusedwrite
- defers
- atomic
- nilfunc
- printf
- sortslice
- tests
Loading
Loading