Add a failing test for codegen autoindent

This commit is contained in:
Antonio Scandurra 2023-09-11 14:35:15 +02:00
parent 02078140c0
commit 6d9333dc3b
4 changed files with 116 additions and 3 deletions

View file

@ -27,7 +27,7 @@ use util::paths::CONVERSATIONS_DIR;
const OPENAI_API_URL: &'static str = "https://api.openai.com/v1";
// Data types for chat completion requests
#[derive(Debug, Serialize)]
#[derive(Debug, Default, Serialize)]
pub struct OpenAIRequest {
model: String,
messages: Vec<RequestMessage>,