api_openai 0.3.0

OpenAI's API for accessing large language models (LLMs).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Test for `batch_content_processor` example compilation issues
//!
//! This test documents the issues in the `batch_content_processor` example:
//! 1. Missing generic parameter for Client struct
//! 2. Lifetime issue with temporary value in string parsing

#[ tokio::test ]
async fn test_batch_content_processor_compiles_successfully()
{
  // This test verifies that the batch_content_processor example compilation issues have been fixed
  // The example should now compile without errors after fixing:
  // 1. ✅ Arc< Client< api_openai::environment::OpenaiEnvironmentImpl > > with correct generic parameter
  // 2. ✅ Fixed temporary value lifetime issue with proper let binding for string parsing

  println!("✅ batch_content_processor example compilation issues have been fixed");
  // The test passes if the code compiles successfully
}