MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_code_config_default_llm_config

Function test_code_config_default_llm_config

core/src/config/tests.rs:913–945  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

911
912#[test]
913fn test_code_config_default_llm_config() {
914 let config = CodeConfig {
915 default_model: Some("anthropic/claude-sonnet-4".to_string()),
916 providers: vec![ProviderConfig {
917 name: "anthropic".to_string(),
918 api_key: Some("sk-test".to_string()),
919 base_url: Some("https://api.anthropic.com".to_string()),
920 headers: HashMap::new(),
921 session_id_header: None,
922 models: vec![ModelConfig {
923 id: "claude-sonnet-4".to_string(),
924 name: "Claude Sonnet 4".to_string(),
925 family: "claude-sonnet".to_string(),
926 api_key: None,
927 base_url: None,
928 headers: HashMap::new(),
929 session_id_header: None,
930 attachment: false,
931 reasoning: false,
932 tool_call: true,
933 temperature: true,
934 release_date: None,
935 modalities: ModelModalities::default(),
936 cost: ModelCost::default(),
937 limit: ModelLimit::default(),
938 }],
939 }],
940 ..Default::default()
941 };
942
943 let llm_config = config.default_llm_config();
944 assert!(llm_config.is_some());
945}
946
947#[test]
948fn test_code_config_list_models() {

Callers

nothing calls this directly

Calls 1

default_llm_configMethod · 0.80

Tested by

no test coverage detected