Commit 81f7b2e
committed
fix: raise ValueError when 'model' is passed instead of 'model_name' in BedrockEmbedding
BedrockEmbedding accepts model_name to specify the Bedrock model ID, but
passing model= was silently ignored, causing the default model to be used
unexpectedly. This adds an explicit check that raises a clear ValueError
guiding users to use model_name instead.1 parent 59b4cc6 commit 81f7b2e
File tree
2 files changed
+13
-0
lines changed- llama-index-integrations/embeddings/llama-index-embeddings-bedrock
- llama_index/embeddings/bedrock
- tests
2 files changed
+13
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
| |||
llama-index-integrations/embeddings/llama-index-embeddings-bedrock/tests/test_bedrock_embedding.py
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
0 commit comments