What is the Only writers can set a specific model?
I use pplx-ai, my .env.local file is as follows:
# Used to set the base URL path for OpenAI API requests.
# If you need to set a BASE URL, uncomment and set the following:
# OPENAI_API_BASE=
# Used to set the model for OpenAI API requests.
# If not set, the default is gpt-4-turbo.
# OPENAI_API_MODEL='gpt-4-turbo'
# OpenAI API key retrieved here: https://platform.openai.com/api-keys
# OPENAI_API_KEY=
# Tavily API Key retrieved here: https://app.tavily.com/home
# TAVILY_API_KEY=
# Only writers can set a specific model. It must be compatible with the OpenAI API.
USE_SPECIFIC_API_FOR_WRITER=true
SPECIFIC_API_BASE=https://api.perplexity.ai
SPECIFIC_API_KEY=pplx-xxx
SPECIFIC_API_MODEL=sonar-small-online
Error Message: unhandledRejection: LoadAPIKeyError [AI_LoadAPIKeyError]: OpenAI API key is missing. Pass it using the 'apiKey' parameter or the OPENAI_API_KEY environment variable.
What is the
Only writers can set a specific model?I use
pplx-ai, my.env.localfile is as follows:Error Message: unhandledRejection: LoadAPIKeyError [AI_LoadAPIKeyError]: OpenAI API key is missing. Pass it using the 'apiKey' parameter or the OPENAI_API_KEY environment variable.