pub async fn openai_send_request(
url: &String,
model: &String,
prompt: &String,
timeout_in_sec: u64,
token: &String,
response_format: Value,
) -> Result<String, Box<dyn Error>>Expand description
Re-exports the send_request function from the openai_api_client module.
This function sends a request to the OpenAI API and returns the response.
ยงParameters
model: The name of the model to query.prompt: The query prompt.timeout_in_sec: Timeout in seconds for the request.token: Your OpenAI API token.