This commit is contained in:
parent
4e9122a657
commit
41dc3ca5fa
|
|
@ -1,4 +1,4 @@
|
||||||
async function generateBgeM3Embedding(text: string): Promise<number[] | null> {
|
export async function generateBgeM3Embedding(text: string): Promise<number[] | null> {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("http://localhost:8000/embedding", {
|
const response = await fetch("http://localhost:8000/embedding", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue