Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion litellm-rust/crates/core/src/messages/common_utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use litellm_http::request::string_headers as shared_string_headers;
pub(super) use litellm_http::request::truncate_error_body;
use litellm_llms::{
anthropic::experimental_pass_through::messages::transformation::ANTHROPIC_MESSAGES_CONFIG,
anthropic::messages::transformation::ANTHROPIC_MESSAGES_CONFIG,
azure_ai::anthropic::messages_transformation::AZURE_ANTHROPIC_MESSAGES_CONFIG,
base_llm::anthropic_messages::transformation::BaseAnthropicMessagesConfig,
};
Expand Down
2 changes: 1 addition & 1 deletion litellm-rust/crates/core/src/messages/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use litellm_core_utils::{
settings::Lookup,
};
use litellm_llms::{
anthropic::experimental_pass_through::messages::handler::shape_anthropic_messages_request,
anthropic::messages::handler::shape_anthropic_messages_request,
base_llm::anthropic_messages::transformation::{
BaseAnthropicMessagesConfig, MessagesTransformContext,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use time::OffsetDateTime;
use url::Url;

use crate::{
anthropic::experimental_pass_through::messages::transformation::resolve_anthropic_api_base,
anthropic::messages::transformation::resolve_anthropic_api_base,
base_llm::chat::transformation::Error,
};

Expand Down
2 changes: 1 addition & 1 deletion litellm-rust/crates/llms/src/anthropic/chat/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use litellm_types::{
use serde_json::Value;

use crate::{
anthropic::experimental_pass_through::messages::streaming_iterator::{
anthropic::messages::streaming_iterator::{
AnthropicContentBlock, AnthropicContentBlockDelta, AnthropicMessagesStreamEvent,
AnthropicStreamUsage,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ use serde_json::{Map, Value, json};
use crate::{
anthropic::{
ANTHROPIC_OAUTH_TOKEN_PREFIX,
experimental_pass_through::messages::transformation::{
complete_anthropic_url, resolve_anthropic_api_key,
},
messages::transformation::{complete_anthropic_url, resolve_anthropic_api_key},
},
base_llm::chat::transformation::{
BaseConfig, Error, ProviderChatRequestData, ProviderChatResponseData, RequestAuth,
Expand Down

This file was deleted.

5 changes: 3 additions & 2 deletions litellm-rust/crates/llms/src/anthropic/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pub mod common_utils;

pub mod batches;
pub mod chat;
pub mod common_utils;
pub mod count_tokens;
pub mod experimental_pass_through;
pub mod messages;
Comment thread
yujonglee-berri marked this conversation as resolved.
Resolved

pub const ANTHROPIC_OAUTH_TOKEN_PREFIX: &str = "sk-ant-oat";
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use litellm_types::llms::anthropic_messages::{
};

use crate::{
anthropic::experimental_pass_through::messages::transformation::{
anthropic::messages::transformation::{
ANTHROPIC_MESSAGES_CONFIG, AnthropicMessagesConfig, non_empty,
},
base_llm::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use litellm_types::llms::anthropic_messages::{
};

use crate::{
anthropic::experimental_pass_through::messages::thinking::ThinkingContext,
base_llm::chat::transformation::Error,
anthropic::messages::thinking::ThinkingContext, base_llm::chat::transformation::Error,
};

pub type Headers = Vec<(String, String)>;
Expand Down
Loading