llama-stack/llama_stack
Xi Yan 94051cfe9e
fix ImageContentItem to take base64 string as image.data (#909)
# What does this PR do?

- Discussion in
https://github.com/meta-llama/llama-stack/pull/906#discussion_r1936260819

- image.data should accept base64 string as input instead of binary
bytes, change prompt_adapter to account for that.

## Test Plan

```
pytest -v tests/client-sdk/inference/test_inference.py
```

with test in https://github.com/meta-llama/llama-stack/pull/906

## Sources

Please link relevant resources if necessary.


## Before submitting

- [ ] This PR fixes a typo or improves the docs (you can dismiss the
other checks if that's the case).
- [ ] Ran pre-commit to handle lint / formatting issues.
- [ ] Read the [contributor
guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md),
      Pull Request section?
- [ ] Updated relevant documentation.
- [ ] Wrote necessary unit or integration tests.
2025-01-30 15:58:23 -08:00
..
apis fix ImageContentItem to take base64 string as image.data (#909) 2025-01-30 15:58:23 -08:00
cli Fix running stack built with base conda environment (#903) 2025-01-29 21:24:22 -08:00
distribution Update OpenAPI generator to add param and field documentation (#896) 2025-01-29 10:04:30 -08:00
providers fix ImageContentItem to take base64 string as image.data (#909) 2025-01-30 15:58:23 -08:00
scripts [memory refactor][3/n] Introduce RAGToolRuntime as a specialized sub-protocol (#832) 2025-01-22 10:04:16 -08:00
templates SambaNova supports Llama 3.3 (#905) 2025-01-30 09:24:46 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00