chore: initial commit

This commit is contained in:
albertfj114
2026-03-29 22:02:22 -04:00
commit b2935ae932
54 changed files with 25031 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import openai
import os
openai.api_key = "YOUR OPENAI API KEY"
text = "唐朝总共多少年"
response = openai.Embedding.create(
input=text,
model="text-embedding-ada-002"
)
embeddings = response['data'][0]['embedding']
print(embeddings)