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

Function test_openai_convert_messages_simple_text

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

Source from the content-addressed store, hash-verified

922
923 #[test]
924 fn test_openai_convert_messages_simple_text() {
925 let client = OpenAiClient::new("key".to_string(), "gpt-4".to_string());
926 let msgs = vec![Message::user("Hello")];
927 let converted = client.convert_messages(&msgs);
928
929 assert_eq!(converted.len(), 1);
930 assert_eq!(converted[0]["role"], "user");
931 assert_eq!(converted[0]["content"], "Hello");
932 }
933
934 #[test]
935 fn test_openai_convert_messages_tool_result() {

Callers

nothing calls this directly

Calls 1

convert_messagesMethod · 0.80

Tested by

no test coverage detected