Skip to main content

Azure OpenAI

  1. Create an account on Azure OpenAI and get your API key.
  2. Add the following to your taskweaver_config.json file:
{
"llm.api_base":"YOUR_AOAI_ENDPOINT",
"llm.api_key":"YOUR_API_KEY",
"llm.api_type":"azure",
"llm.auth_mode":"api-key",
"llm.model":"gpt-4-1106-preview", # this is known as deployment_name in Azure OpenAI
"llm.response_format": "json_object"
}
info

For model versions or after 1106, llm.response_format can be set to json_object. However, for the earlier models, which do not support JSON response explicitly, llm.response_format should be set to null.

  1. Start TaskWeaver and chat with TaskWeaver. You can refer to the Quick Start for more details.