-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingfeb 2025help wantedExtra attention is neededExtra attention is neededopenaistale
Description
What happened?
I am trying to hit an embedding API via AsyncOpenAI. The following code works:
client = AsyncOpenAI(base_url="http://localhost:7997", api_key="sk-infinity-svc")
response = await client.embeddings.create(
model="michaelfeil/colpali-v12-random-testing",
input=[base64_image],
encoding_format="float",
extra_body={
"modality": "image"
}
)
print(response)
But when I try the same with litellm (assume litellm intialized with necessary url and key),
response = await self.client.embeddings.create(
input=input,
model=embedding_model,
encoding_format="float",
extra_body={"modality": "image"}
)
I get the following error: litellm.llms.OpenAI.openai.OpenAIError: AsyncEmbeddings.create() got an unexpected keyword argument modality
config file:
- model_name: colpali-random
litellm_params:
model: openai/michaelfeil/colpali-v12-random-testing
api_base: http://infinity:7997
api_key: "sk-infinity-svc"
model_info:
type: embedding
Relevant log output
An error occurred: litellm.APIError: APIError: OpenAIException - AsyncEmbeddings.create() got an unexpected keyword argument 'modality'
Received Model Group=colpali-random
Available Model Group Fallbacks=None, LiteLLM Max Retries: 1
Model: openai/michaelfeil/colpali-v12-random-testing
API Base: `http://infinity:7997`
model_group: `colpali-random`
deployment: `openai/michaelfeil/colpali-v12-random-testing`
Twitter / LinkedIn details
No response
michaelfeil
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfeb 2025help wantedExtra attention is neededExtra attention is neededopenaistale