try using openai api key for dalle-3 plugin
This commit is contained in:
parent
ed20fd2962
commit
90e7b5aecf
|
@ -60,12 +60,12 @@ export const FunctionToolService = {
|
||||||
};
|
};
|
||||||
if (authLocation == "header") {
|
if (authLocation == "header") {
|
||||||
headers[headerName] = tokenValue;
|
headers[headerName] = tokenValue;
|
||||||
// try using openaiApiKey for Dalle3 Plugin.
|
}
|
||||||
if (!tokenValue && plugin.id === "dalle3") {
|
// try using openaiApiKey for Dalle3 Plugin.
|
||||||
const openaiApiKey = useAccessStore.getState().openaiApiKey;
|
if (!tokenValue && plugin.id === "dalle3") {
|
||||||
if (openaiApiKey) {
|
const openaiApiKey = useAccessStore.getState().openaiApiKey;
|
||||||
headers[headerName] = `Bearer ${openaiApiKey}`;
|
if (openaiApiKey) {
|
||||||
}
|
headers[headerName] = `Bearer ${openaiApiKey}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const api = new OpenAPIClientAxios({
|
const api = new OpenAPIClientAxios({
|
||||||
|
|
Loading…
Reference in New Issue