2024-09-27 16:41:39 -07:00
|
|
|
pub const RATELIMIT_SELECTOR_HEADER_KEY: &str = "x-arch-ratelimit-selector";
|
2024-07-30 16:23:23 -07:00
|
|
|
pub const SYSTEM_ROLE: &str = "system";
|
|
|
|
|
pub const USER_ROLE: &str = "user";
|
2024-10-18 13:25:39 -07:00
|
|
|
pub const TOOL_ROLE: &str = "tool";
|
|
|
|
|
pub const ASSISTANT_ROLE: &str = "assistant";
|
2025-02-14 19:28:10 -08:00
|
|
|
pub const ARCH_FC_REQUEST_TIMEOUT_MS: u64 = 30000; // 30 seconds
|
|
|
|
|
pub const DEFAULT_TARGET_REQUEST_TIMEOUT_MS: u64 = 30000; // 30 seconds
|
|
|
|
|
pub const API_REQUEST_TIMEOUT_MS: u64 = 30000; // 30 seconds
|
|
|
|
|
pub const MODEL_SERVER_REQUEST_TIMEOUT_MS: u64 = 30000; // 30 seconds
|
2024-10-01 11:24:43 -07:00
|
|
|
pub const MODEL_SERVER_NAME: &str = "model_server";
|
2024-09-27 16:41:39 -07:00
|
|
|
pub const ARCH_ROUTING_HEADER: &str = "x-arch-llm-provider";
|
2024-10-24 00:02:24 -04:00
|
|
|
pub const MESSAGES_KEY: &str = "messages";
|
2024-10-03 10:57:01 -07:00
|
|
|
pub const ARCH_PROVIDER_HINT_HEADER: &str = "x-arch-llm-provider-hint";
|
2024-10-18 12:53:44 -07:00
|
|
|
pub const CHAT_COMPLETIONS_PATH: &str = "/v1/chat/completions";
|
2024-10-28 20:05:06 -04:00
|
|
|
pub const HEALTHZ_PATH: &str = "/healthz";
|
2024-10-07 00:03:25 -07:00
|
|
|
pub const ARCH_STATE_HEADER: &str = "x-arch-state";
|
2024-10-07 18:38:55 -07:00
|
|
|
pub const ARCH_FC_MODEL_NAME: &str = "Arch-Function-1.5B";
|
2024-10-08 16:24:08 -07:00
|
|
|
pub const REQUEST_ID_HEADER: &str = "x-request-id";
|
2024-11-07 22:11:00 -06:00
|
|
|
pub const TRACE_PARENT_HEADER: &str = "traceparent";
|
2024-10-08 16:24:08 -07:00
|
|
|
pub const ARCH_INTERNAL_CLUSTER_NAME: &str = "arch_internal";
|
|
|
|
|
pub const ARCH_UPSTREAM_HOST_HEADER: &str = "x-arch-upstream";
|
2024-10-15 11:43:05 -07:00
|
|
|
pub const ARCH_MODEL_PREFIX: &str = "Arch";
|
2024-10-28 20:05:06 -04:00
|
|
|
pub const HALLUCINATION_TEMPLATE: &str =
|
|
|
|
|
"It seems I'm missing some information. Could you provide the following details ";
|
2024-11-18 17:55:39 -08:00
|
|
|
pub const OTEL_COLLECTOR_HTTP: &str = "opentelemetry_collector_http";
|
|
|
|
|
pub const OTEL_POST_PATH: &str = "/v1/traces";
|