Skip to content

Commit

Permalink
fix: adjust version const naming
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMochan committed Sep 23, 2024
1 parent 1e39374 commit 53ec3c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions rig-core/src/providers/anthropic/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ pub const CLAUDE_3_SONNET: &str = "claude-3-sonnet-20240229";
/// `claude-3-haiku-20240307` completion model
pub const CLAUDE_3_HAIKU: &str = "claude-3-haiku-20240307";

pub const ANTHROPIC_VERSION_1: &str = "2023-01-01";
pub const ANTHROPIC_VERSION_2: &str = "2023-06-01";
pub const ANTHROPIC_VERSION_LATEST: &str = ANTHROPIC_VERSION_2;
pub const ANTHROPIC_VERSION_2023_01_01: &str = "2023-01-01";
pub const ANTHROPIC_VERSION_2023_06_01: &str = "2023-06-01";
pub const ANTHROPIC_VERSION_LATEST: &str = ANTHROPIC_VERSION_2023_06_01;

#[derive(Debug, Deserialize)]
pub struct CompletionResponse {
Expand Down
4 changes: 2 additions & 2 deletions rig-core/src/providers/anthropic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ pub mod completion;

pub use client::{Client, ClientBuilder};
pub use completion::{
ANTHROPIC_VERSION_1, ANTHROPIC_VERSION_2, ANTHROPIC_VERSION_LATEST, CLAUDE_3_5_SONNET,
CLAUDE_3_HAIKU, CLAUDE_3_OPUS, CLAUDE_3_SONNET,
ANTHROPIC_VERSION_2023_01_01, ANTHROPIC_VERSION_2023_06_01, ANTHROPIC_VERSION_LATEST,
CLAUDE_3_5_SONNET, CLAUDE_3_HAIKU, CLAUDE_3_OPUS, CLAUDE_3_SONNET,
};

0 comments on commit 53ec3c8

Please sign in to comment.