Am creating an AI app using forge , when I deploy and install the app in developemt and test it , it works perfectly . But in production it fails. Here is my oce:
export const generateDescription = async ({
description,
issueKey,
issueId,
}) => {
...
const response = await api.fetch(
OpenAIUrl + "/engines/text-davinci-003/completions",
{
body: bodyInJSON,
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${OpenAIApiKey}`,
},
}
);...
}
I have alos include permissions in my manifest.yml
external:
fetch:
backend:
- 'api.openai.com'
This is the error,I get from the app:
{ "message": "URL not included in the external fetch backend permissions: undefined/engines/text-davinci-003/completions. Visit go.atlassian.com/forge-egress for more information.", "name": "REQUEST_EGRESS_ALLOWLIST_ERR", "status": 403 }