fileStrategy #7513
Unanswered
kamaldua65
asked this question in
Q&A
fileStrategy
#7513
Replies: 1 comment
-
i checked my logs show: which means Azur blob settings are ok. but no files go to blob, it only go to openAI , azure or host. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please explain fileStrategy? how it works when files are saved where and how to control.
there is one global setting for fileStrategy in yml file. however files are saved in host, openai & azure depending on provider used.
I am still not able to save files on azure_blob.
do we need to add file strategy in fileConfig in each end point ( or in main endpoint?)
'// Strategy Selector
const getStrategyFunctions = (fileSource) => {
if (fileSource === FileSources.firebase) {
return firebaseStrategy();
} else if (fileSource === FileSources.local) {
return localStrategy();
} else if (fileSource === FileSources.openai) {
return openAIStrategy();
} else if (fileSource === FileSources.azure) {
return openAIStrategy();
} else if (fileSource === FileSources.azure_blob) {
return azureStrategy();
} else if (fileSource === FileSources.vectordb) {
return vectorStrategy();
} else if (fileSource === FileSources.s3) {
return s3Strategy();
} else if (fileSource === FileSources.execute_code) {
return codeOutputStrategy();
} else if (fileSource === FileSources.mistral_ocr) {
return mistralOCRStrategy();
} else {
throw new Error('Invalid file source');
}
};'
Beta Was this translation helpful? Give feedback.
All reactions