feat: add new examples from pocketflow-academy
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from utils.call_llm import client
|
||||
|
||||
def get_embedding(text):
|
||||
response = client.embeddings.create(
|
||||
model="text-embedding-ada-002",
|
||||
input=text
|
||||
)
|
||||
return response.data[0].embedding
|
||||
Reference in New Issue
Block a user