Skip to content

Commit

Permalink
Add: new snapshots of GPT-4/GPT-3 models and GPT-3.4-Turbo-16K
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongdongy committed Jun 16, 2023
1 parent 31c43ec commit fb9f1f5
Show file tree
Hide file tree
Showing 11 changed files with 482 additions and 375 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/azure/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "rust-ai-azure-examples"
edition = "2021"
version = "0.1.1"
version = "0.1.2"

[dependencies]
rust-ai = { path = "../../rust-ai" }
tokio = { version = "1.26.0", features = ["full"] }
tokio = { version = "1.28.1", features = ["full"] }
log = "0.4.17"
log4rs = "1.2.0"

Expand Down
12 changes: 6 additions & 6 deletions rust-ai-generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rust-ai-generator"
authors = ["Zhongdong Yang"]
description = "A tool to generate types for `rust-ai`"
version = "0.1.9"
version = "0.1.10"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/dongsxyz/rust-ai/"
Expand All @@ -14,11 +14,11 @@ readme = "README.md"

[dependencies]
chrono = "0.4.24"
reqwest = { version = "0.11.15", features = ["json", "multipart"] }
serde = { version = "1.0.158", features = ["derive"] }
serde_json = "1.0.94"
serde_yaml = "0.9.19"
tokio = { version = "1.26.0", features = ["full"] }
reqwest = { version = "0.11.17", features = ["json", "multipart"] }
serde = { version = "1.0.162", features = ["derive"] }
serde_json = "1.0.96"
serde_yaml = "0.9.21"
tokio = { version = "1.28.1", features = ["full"] }

[[bin]]
name = "rsai-generator"
Expand Down
4 changes: 2 additions & 2 deletions rust-ai/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rust-ai"
authors = ["Zhongdong Yang"]
description = "A collection of 3rd-party AI APIs for Rust"
version = "0.1.18"
version = "0.1.19"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/dongsxyz/rust-ai/"
Expand Down Expand Up @@ -31,7 +31,7 @@ reqwest = { version = "0.11.17", default-features = false, features = [
serde = { version = "1.0.162", features = ["derive"] }
serde_json = "1.0.96"
serde_yaml = "0.9.21"
tokio = { version = "1.28.0", features = ["full"] }
tokio = { version = "1.28.1", features = ["full"] }
log = "0.4.17"
log4rs = "1.2.0"
serde_with = "3.0.0"
Expand Down
25 changes: 16 additions & 9 deletions rust-ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Provide a collection of third-party APIs that give public access to AI capabilit

| Category | Variant | Tested Models | Stream |
| :--------------- | :------------- | :----------------------- | :----: |
| Chat completions | - | `gpt-4`, `gpt-4-0314`, `gpt-3.5-turbo`, `gpt-3.5-turbo-0301`, `text-davinci-003`, `text-davinci-002`, `code-davinci-002`[^note_3] | yes |
| Completions | - | `gpt-3.5-turbo`, `gpt-3.5-turbo-0301`, `text-davinci-003` | yes |
| Chat completions | - | `gpt-4`, `gpt-4-0314`, `gpt-4-0613`, `gpt-3.5-turbo`, `gpt-3.5-turbo-16k`, `gpt-3.5-turbo-16k-0613`, `gpt-3.5-turbo-0613`, `gpt-3.5-turbo-0301`, `text-davinci-003`, `text-davinci-002`, `code-davinci-002`[^note_3] | yes |ext-davinci-002`, `code-davinci-002` | yes |
| Completions | - | `gpt-3.5-turbo`, `gpt-3.5-turbo-16k`, `gpt-3.5-turbo-16k-0613`, `gpt-3.5-turbo-0613`, `gpt-3.5-turbo-0301`, `text-davinci-003` | yes | | yes |
| Edits | - | `text-davinci-edit-001`, `code-davinci-edit-001` | - |
| Images | Generations | `dall-e`[^note_1] | - |
| Images | Edits | `dall-e`[^note_1] | - |
Expand All @@ -21,10 +21,9 @@ Provide a collection of third-party APIs that give public access to AI capabilit
| Audios | Translation | `whisper-1` | - |
| Moderation | - | `text-moderation-latest`[^note_2], `text-moderation-stable` | - |

Note:
- Updated on May 6th, 2023
Note:
- Updated on June 16th, 2023.
- OpenAI's Fine Tunes endpoints are currently not supported.
- All Codex models are now deprecated by OpenAI.

### Azure

Expand Down Expand Up @@ -52,10 +51,18 @@ azure:
If you prefer to load configuration from environment variables, set the contents to `RUST_AI_CONFIG` like example `chat-completion-streamed` does.

[^note_1]: `dall-e` is an hypothetical name of the unknown model. Currently, OpenAI doesn't support manually specify model for image related tasks. So DALL·E models are not valid variants of `Model` enum.
[^note_1]: `dall-e` is an hypothetical name of the unknown model.
Currently, OpenAI doesn't support manually specify model for image related
tasks. So DALL·E models are not valid variants of `Model` enum.

[^note_2]: OpenAI's responses for moderation indicate usage of `text-moderation-004` model (March 23rd, 2023). But developers cannot use its API endpoints to specify variants other than `text-moderation-latest` and `text-moderation-stable`.
[^note_2]: OpenAI's responses for moderation indicate usage of
`text-moderation-004` model (March 23rd, 2023). But developers cannot use
its API endpoints to specify variants other than `text-moderation-latest`
and `text-moderation-stable`.

[^note_3]: GPT-4/GPT-4-0314 tested, GPT-4-32K/GPT-4-32K-0314 not tested because developer currently only has access to 8K token ones (May 6th, 2023).
[^note_3]: GPT-4/GPT-4-0314/GPT-4-0613 tested, GPT-4-32K/GPT-4-32K-0314 not tested
because developer currently only has access to 8K token ones (May 6th,
2023).

[^note_4]: You may notice the actual model behind Embedding API to be `text-embedding-ada-002-v2` (March 23rd, 2023).
[^note_4]: You may notice the actual model behind Embedding API to be
`text-embedding-ada-002-v2` (March 23rd, 2023).
2 changes: 1 addition & 1 deletion rust-ai/src/azure/types/locale.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//!
//! Locale names fetched from Microsoft Cognitive Services API.
//!
//! Updated on 2023-04-20.
//! Updated on 2023-06-16.
////////////////////////////////////////////////////////////////////////////////

Expand Down
Loading

0 comments on commit fb9f1f5

Please sign in to comment.