-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rory-linehan/0.3.0
0.3.0
- Loading branch information
Showing
7 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### 0.3.0 | ||
|
||
* adding completions | ||
|
||
### 0.2.0 | ||
|
||
* engine endpoints deprecated in favor of models | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>"] | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
|
||
[deps] | ||
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@testset "completion" begin | ||
api_key = "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" | ||
r = list_models(api_key) | ||
if !=(r.status, 200) | ||
@test false | ||
end | ||
r = create_completion( | ||
api_key, | ||
r.response["data"][begin]["id"]; | ||
prompt = "Say this is a test" | ||
) | ||
println(r.response["choices"][begin]["text"]) | ||
if !=(r.status, 200) | ||
@test false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
@testset "models" begin | ||
api_key = "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" | ||
r = list_models(api_key) | ||
println(r) | ||
if !=(r.status, 200) | ||
@test false | ||
end | ||
r = retrieve_model(api_key, r.response["data"][begin]["id"]) | ||
println(r) | ||
if !=(r.status, 200) | ||
@test false | ||
end | ||
end | ||
api_key = "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" | ||
r = list_models(api_key) | ||
println(r) | ||
if !=(r.status, 200) | ||
@test false | ||
end | ||
r = retrieve_model(api_key, r.response["data"][begin]["id"]) | ||
println(r) | ||
if !=(r.status, 200) | ||
@test false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
988296a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
988296a
There was a problem hiding this comment.
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/66108
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: