forked from phoenix-oss/llama-stack-mirror
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:
parent
a63a43c646
commit
caa8387dd2
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue