code: def test_init_with_parameters(self):
      component = OpenAIChatGenerator(
          api_key="test-api-key",
          model="gpt-4",
          streaming_callback=default_streaming_callback,
          api_base_url="test-base-url",
          generation_kwargs={
              "max_tokens": 10,
              "some_test_param": "test-params",
          },
      )
      assert component.client.api_key == "test-api-key"
      assert component.model == "gpt-4"
      assert component.streaming_callback is default_streaming_callback
      assert component.generation_kwargs == {
          "max_tokens": 10,
          "some_test_param": "test-params",
      }
  
imports: import os
  import pytest
  from openai import OpenAIError
  from haystack.components.generators.chat import OpenAIChatGenerator
  from haystack.components.generators.utils import default_streaming_callback
  from haystack.dataclasses import ChatMessage, StreamingChunk
label_desc: Use image node_id 3 for calling the TestOpenAIChatGenerator obj's underlying member method code with example usage: obj.test_init_with_parameters() without return types