hi, i am trying to build a chatbot using openai on azure. i am following these instructions:
https://gpt-index.readthedocs.io/en/latest/examples/agent/openai_agent.html. i've replaced this line:
llm: OpenAI = OpenAI(temperature=0, model="gpt-3.5-turbo-0613"),
with this:
llm: AzureOpenAI = AzureOpenAI(engine="gpt-4", model="gpt-4", temperature=0.7, max_tokens=800, top_p=0.95, frequency_penalty=0, presence_penalty=0, stop=None),
but I am getting this error:
openai.error.InvalidRequestError: Unrecognized request argument supplied: functions
in this line:
ai_message = self._llm.chat(chat_history, functions=functions).message
does anything immediately jump out? am i able to simply switch the llm to use AzureOpenAI?