llama-stack/llama_stack/providers/utils
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
..
bedrock add missing init file 2024-12-17 11:49:03 -08:00
common [post training] define llama stack post training dataset format (#717) 2025-01-14 12:48:49 -08:00
datasetio Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
inference fix ImageContentItem to take base64 string as image.data (#909) 2025-01-30 15:58:23 -08:00
kvstore Replaced zrangebylex method in the range method (#521) 2025-01-11 22:04:34 -08:00
memory [memory refactor][3/n] Introduce RAGToolRuntime as a specialized sub-protocol (#832) 2025-01-22 10:04:16 -08:00
scoring [rag evals] refactor & add ability to eval retrieval + generation in agentic eval pipeline (#664) 2025-01-02 11:21:33 -08:00
telemetry optional api dependencies (#793) 2025-01-17 15:26:53 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00