class_docstr: Unit tests for the openai LLM class
class_docstr_tok: ["Unit","tests","for","the","openai","LLM","class"]
code: def test_params_setting(self):
      llm = OpenAI(
          api_token="test",
          model="gpt-3.5-turbo",
          temperature=0.5,
          max_tokens=50,
          top_p=1.0,
          frequency_penalty=2.0,
          presence_penalty=3.0,
          stop=["\n"],
      )
  
      assert llm.model == "gpt-3.5-turbo"
      assert llm.temperature == 0.5
      assert llm.max_tokens == 50
      assert llm.top_p == 1.0
      assert llm.frequency_penalty == 2.0
      assert llm.presence_penalty == 3.0
      assert llm.stop == ["\n"]
  
file_path: pandas-ai/tests/llms/test_openai.py
imports: import openai
  import pytest
  from pandasai.exceptions import APIKeyNotFoundError, UnsupportedModelError
  from pandasai.llm import OpenAI
  from pandasai.prompts import AbstractPrompt
label_desc: Use image node_id 5 for calling the TestOpenAILLM obj's underlying member method code with example usage: obj.test_params_setting() without return types