fix: file_id undefined bug (#275)
This commit is contained in:
@@ -68,6 +68,7 @@ export async function getVector({
|
||||
)
|
||||
.then(async (res) => {
|
||||
if (!res.data?.data?.[0]?.embedding) {
|
||||
console.log(res.data);
|
||||
// @ts-ignore
|
||||
return Promise.reject(res.data?.err?.message || 'Embedding API Error');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user