mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
test -base64 cache hits
This commit is contained in:
parent
0c26404cb3
commit
8bc02b34c2
2 changed files with 45 additions and 0 deletions
10
litellm/proxy/tests/test_openai_simple_embedding.py
Normal file
10
litellm/proxy/tests/test_openai_simple_embedding.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import openai
|
||||
|
||||
client = openai.OpenAI(api_key="sk-1234", base_url="http://0.0.0.0:4000")
|
||||
|
||||
# # request sent to model set on litellm proxy, `litellm --model`
|
||||
response = client.embeddings.create(
|
||||
model="text-embedding-ada-002", input=["test"], encoding_format="base64"
|
||||
)
|
||||
|
||||
print(response)
|
Loading…
Add table
Add a link
Reference in a new issue