Skip to content

Commit

Permalink
0.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
roryl23 committed Nov 5, 2023
1 parent 3fa99e7 commit cfee12d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.8.7

* disable `test/usage.jl` in `test/runtests.jl` to close issue: https://github.com/JuliaML/OpenAI.jl/issues/46

### 0.8.6

#### Pull Requests:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OpenAI"
uuid = "e9f21f70-7185-4079-aca2-91159181367c"
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"]
version = "0.8.6"
version = "0.8.7"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
4 changes: 3 additions & 1 deletion src/OpenAI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ end
"""
get_usage_status(provider::OpenAIProvider; numofdays::Int=99)
Get usage status for the last `numofdays` days.
NOTE: currently this endpoint can only be used from the browser. See https://github.com/JuliaML/OpenAI.jl/issues/46
Get usage status for the last `numofdays` days.
# Arguments:
- `provider::OpenAIProvider`: OpenAI provider object.
Expand Down
7 changes: 4 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ end
@testset "embeddings" begin
include("embeddings.jl")
end
@testset "usage" begin
include("usage.jl")
end
# https://github.com/JuliaML/OpenAI.jl/issues/46
# @testset "usage" begin
# include("usage.jl")
# end
end
1 change: 1 addition & 0 deletions test/usage.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Get usage status of an api

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

2 comments on commit cfee12d

@roryl23
Copy link
Collaborator Author

@roryl23 roryl23 commented on cfee12d Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/94785

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.7 -m "<description of version>" cfee12d78032bb5298e9e250a42ea57edd5e8fb1
git push origin v0.8.7

Please sign in to comment.