pub async fn create_completion(
pool: &Pool<Postgres>,
channel: &Channel,
cid: i32,
uid: i32,
chat_id: i32,
params: CreateCompletionParams,
model: &Model,
api_key: &str,
user_agent: &str,
) -> Result<()>Expand description
Does the whole chat completion routine.