Fixed the error when using Azure OpenAI API
diff --git a/interpreter/core/llm/utils/convert_to_openai_messages.py b/interpreter/core/llm/utils/convert_to_openai_messages.py
index 680ed6954..703f74c5b 100644
--- a/interpreter/core/llm/utils/convert_to_openai_messages.py
+++ b/interpreter/core/llm/utils/convert_to_openai_messages.py
@@ -41,6 +41,9 @@ def convert_to_openai_messages(
                         "code": message["content"],
                     },
                 }
+                # Add empty content to avoid error "openai.error.InvalidRequestError: 'content' is a required property - 'messages.*'"
+                # especially for the OpenAI service hosted on Azure
+                new_message["content"] = "" 
             else:
                 new_message[
                     "content"
diff --git a/interpreter/terminal_interface/start_terminal_interface.py b/interpreter/terminal_interface/start_terminal_interface.py
index b3efbda0b..5d4ca8637 100644
--- a/interpreter/terminal_interface/start_terminal_interface.py
+++ b/interpreter/terminal_interface/start_terminal_interface.py
@@ -119,6 +119,13 @@ def start_terminal_interface(interpreter):
             "type": str,
             "attribute": {"object": interpreter.llm, "attr_name": "api_key"},
         },
+        {
+            "name": "api_version",
+            "nickname": "av",
+            "help_text": "optionally set the API key for your llm calls (this will override environment variables)",
+            "type": str,
+            "attribute": {"object": interpreter.llm, "attr_name": "api_version"},
+        },
         {
             "name": "max_output",
             "nickname": "xo",

Run the interpreter like this:

```console
interpreter --model azure/{engine} --api_base {AZURE_API_BASE} --api_key {AZURE_API_KEY} --api_version {AZURE_API_VERSION}
```

### Describe the changes you have made:

### Reference any relevant issue (Fixes #000)

- [x] I have performed a self-review of my code:

### I have tested the code on the following OS:
- [x] Windows
- [ ] MacOS
- [ ] Linux

### AI Language Model (if applicable)
- [ ] GPT4
- [ ] GPT3
- [ ] Llama 7B
- [ ] Llama 13B
- [ ] Llama 34B
- [ ] Huggingface model (Please specify which one)
- [x] GPT4 on Azure