Skip to content

Commit ba30375

Browse files
authored
feat: record openai token usage metrics (#112)
1 parent ec0d064 commit ba30375

29 files changed

+3615
-192
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232

3333
# # Cache go build cache, used to speedup go test
3434
# - name: Go Build Cache
35-
# uses: actions/cache@v2
35+
# uses: actions/cache@v3
3636
# with:
3737
# path: ${{ steps.go-cache-paths.outputs.go-build }}
3838
# key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
3939

4040
# # Cache go mod cache, used to speedup builds
4141
# - name: Go Mod Cache
42-
# uses: actions/cache@v2
42+
# uses: actions/cache@v3
4343
# with:
4444
# path: ${{ steps.go-cache-paths.outputs.go-mod }}
4545
# key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -74,14 +74,14 @@ jobs:
7474
7575
# Cache go build cache, used to speedup go test
7676
- name: Go Build Cache
77-
uses: actions/cache@v2
77+
uses: actions/cache@v3
7878
with:
7979
path: ${{ steps.go-cache-paths.outputs.go-build }}
8080
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
8181

8282
# Cache go mod cache, used to speedup builds
8383
- name: Go Mod Cache
84-
uses: actions/cache@v2
84+
uses: actions/cache@v3
8585
with:
8686
path: ${{ steps.go-cache-paths.outputs.go-mod }}
8787
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -153,14 +153,14 @@ jobs:
153153
154154
# Cache go build cache, used to speedup go test
155155
- name: Go Build Cache
156-
uses: actions/cache@v2
156+
uses: actions/cache@v3
157157
with:
158158
path: ${{ steps.go-cache-paths.outputs.go-build }}
159159
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
160160

161161
# Cache go mod cache, used to speedup builds
162162
- name: Go Mod Cache
163-
uses: actions/cache@v2
163+
uses: actions/cache@v3
164164
with:
165165
path: ${{ steps.go-cache-paths.outputs.go-mod }}
166166
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

ent/client.go

Lines changed: 158 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/ent.go

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/hook/hook.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/internal/schemaconfig.go

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)