Skip to content

Commit cfee12d

Browse files
committed
0.8.7
1 parent 3fa99e7 commit cfee12d

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 0.8.7
2+
3+
* disable `test/usage.jl` in `test/runtests.jl` to close issue: https://github.com/JuliaML/OpenAI.jl/issues/46
4+
15
### 0.8.6
26

37
#### Pull Requests:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OpenAI"
22
uuid = "e9f21f70-7185-4079-aca2-91159181367c"
33
authors = ["Rory Linehan @rory-linehan", "Marius Fersigan @algunion", "RexWzh @RexWzh", "Thatcher Chamberlin @ThatcherC", "Nicu Stiurca @nstiurca", "Peter @chengchingwen", "Stefan Wojcik @stefanjwojcik", "J S @svilupp", "Logan Kilpatrick @logankilpatrick", "Jerry Ling @Moelf"]
4-
version = "0.8.6"
4+
version = "0.8.7"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/OpenAI.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ end
376376
"""
377377
get_usage_status(provider::OpenAIProvider; numofdays::Int=99)
378378
379-
Get usage status for the last `numofdays` days.
379+
NOTE: currently this endpoint can only be used from the browser. See https://github.com/JuliaML/OpenAI.jl/issues/46
380+
381+
Get usage status for the last `numofdays` days.
380382
381383
# Arguments:
382384
- `provider::OpenAIProvider`: OpenAI provider object.

test/runtests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ end
3434
@testset "embeddings" begin
3535
include("embeddings.jl")
3636
end
37-
@testset "usage" begin
38-
include("usage.jl")
39-
end
37+
# https://github.com/JuliaML/OpenAI.jl/issues/46
38+
# @testset "usage" begin
39+
# include("usage.jl")
40+
# end
4041
end

test/usage.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Get usage status of an api
22

3+
# See https://github.com/JuliaML/OpenAI.jl/issues/46
34
@testset "usage information" begin
45
provider = OpenAI.OpenAIProvider(ENV["OPENAI_API_KEY"], "https://api.openai.com/v1", "")
56
(; quota, usage, daily_costs) = get_usage_status(provider, numofdays=5)

0 commit comments

Comments
 (0)