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

Function test_openai_convert_user_msg

core/src/llm/tests.rs:701–706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

699
700 #[test]
701 fn test_openai_convert_user_msg() {
702 let c = OpenAiClient::new("k".into(), "gpt-4".into());
703 let m = c.convert_messages(&[Message::user("Hello")]);
704 assert_eq!(m[0]["role"], "user");
705 assert_eq!(m[0]["content"], "Hello");
706 }
707
708 #[test]
709 fn test_openai_convert_tool_result() {

Callers

nothing calls this directly

Calls 1

convert_messagesMethod · 0.80

Tested by

no test coverage detected