Fix fireworks client sdk chat completion with images (#840)

Enable downloads before sending request to fireworks. 

Test using -- 
`LLAMA_STACK_CONFIG=./llama_stack/templates/fireworks/run.yaml pytest -s
-v -k 'test_image_chat_completion_streaming' tests/client-sdk`
This commit is contained in:
Hardik Shah 2025-01-22 11:25:10 -08:00 committed by GitHub
parent a63a43c646
commit caa8387dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -265,7 +265,8 @@ class FireworksInferenceAdapter(
if isinstance(request, ChatCompletionRequest):
if media_present:
input_dict["messages"] = [
await convert_message_to_openai_dict(m) for m in request.messages
await convert_message_to_openai_dict(m, download=True)
for m in request.messages
]
else:
input_dict["prompt"] = await chat_completion_request_to_prompt(