class_docstr: Test Class for OpenAI Integration Testing
class_docstr_tok: ["Test","Class","for","OpenAI","Integration","Testing"]
docstr: Test for invalid OpenAI model name parameter
docstr_tok: ["Test","for","invalid","OpenAI","model","name","parameter"]
code: def test_invalid_openai_name_parameter(self):
      """Test for invalid OpenAI model name parameter"""
      self.run_sql(
          f"""
              create model proj.test_openai_nonexistant_model
              predict answer
              using
                engine='openai',
                question_column='question',
                model_name='this-gpt-does-not-exist',
                api_key='{self.get_api_key()}';
              """
      )
      with pytest.raises(Exception):
          self.wait_predictor("proj", "test_openai_nonexistant_model")
  
imports: import os
  import time
  import pytest
  import pandas
  from unittest.mock import patch
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.openai_handler.openai_handler import OpenAIHandler
  from ..executor_test_base import BaseExecutorTest
label_desc: Use image node_id 6 for calling the TestOpenAI obj's underlying member method code with example usage: obj.test_invalid_openai_name_parameter() without return types