switchyard_translation/codecs/anthropic/mod.rs
1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4//! Anthropic Messages buffered and streaming codecs.
5
6mod buffered;
7mod stream;
8
9pub use buffered::AnthropicMessagesCodec;
10pub use stream::AnthropicMessagesStreamCodec;
11
12// Temperature range: 0.0..=1.0 for legacy models supporting this parameter.
13// https://platform.claude.com/docs/en/api/messages/create?version=2023-06-01
14// API version 2026-10-21 removes temperature; sending it returns HTTP 400.
15// https://platform.claude.com/docs/en/api/migration-2026-10-21#sampling-parameters-are-removed
16pub(crate) const MAX_TEMPERATURE: f64 = 1.0;
17pub(crate) const DEFAULT_TEMPERATURE: f64 = 1.0;