fix: updating components to access secret key with new method get_secret_value() (#4243)
* updating components to access secret key with new method * [autofix.ci] apply automated fixes * 📝 (text_embedder.py): Add error messages as constants for better error handling and readability 📝 (text_embedder.py): Improve error handling and validation for embedding model and text content 📝 (text_embedder.py): Ensure proper protocol for the base URL in the embedding model client 📝 (text_embedder.py): Validate the output of embeddings and handle exceptions with logging 📝 (text_embedder.py): Refactor code to encapsulate results in a Data object and update status accordingly 📝 (similarity.spec.ts): Add a delay before clicking the button to run the text output test for better synchronization * uv fix * [autofix.ci] apply automated fixes * 📝 (text_embedder.py): refactor error messages to use inline strings for better readability and maintainability 🐛 (text_embedder.py): fix issue with extracting the first element from embeddings list to ensure correct data handling --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Eric Hare <ericrhare@gmail.com>
This commit is contained in:
parent
f44aca5b41
commit
9b1c382641
23 changed files with 70 additions and 40 deletions
1
src/frontend/package-lock.json
generated
1
src/frontend/package-lock.json
generated
|
|
@ -923,7 +923,6 @@
|
|||
},
|
||||
"node_modules/@clack/prompts/node_modules/is-unicode-supported": {
|
||||
"version": "1.3.0",
|
||||
"extraneous": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
|
|
|
|||
|
|
@ -319,6 +319,8 @@ test("user must be able to check similarity between embedding texts", async ({
|
|||
await textOutputInput.hover();
|
||||
await page.mouse.up();
|
||||
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.getByTestId("button_run_text output").click();
|
||||
|
||||
await page.waitForSelector("text=built successfully", { timeout: 30000 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue