This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-31 15:22:26 -03:00
commit ddf14638e5
6 changed files with 6 additions and 9 deletions

View file

@ -26,10 +26,7 @@ class AmazonBedrockComponent(CustomComponent):
],
},
"credentials_profile_name": {"display_name": "Credentials Profile Name"},
"streaming": {
"display_name": "Streaming",
"field_type": "bool"
},
"streaming": {"display_name": "Streaming", "field_type": "bool"},
"code": {"show": False},
}

View file

@ -41,7 +41,8 @@ class AmazonKendraRetrieverComponent(CustomComponent):
region_name=region_name,
credentials_profile_name=credentials_profile_name,
attribute_filter=attribute_filter,
user_context=user_context) # type: ignore
user_context=user_context,
) # type: ignore
except Exception as e:
raise ValueError("Could not connect to AmazonKendra API.") from e
return output

View file

@ -16,8 +16,8 @@ import {
FETCH_ERROR_MESSAGE,
} from "./constants/constants";
import { alertContext } from "./contexts/alertContext";
import { locationContext } from "./contexts/locationContext";
import { FlowsContext } from "./contexts/flowsContext";
import { locationContext } from "./contexts/locationContext";
import { typesContext } from "./contexts/typesContext";
import Router from "./routes";

View file

@ -26,7 +26,6 @@ import { TOOLTIP_EMPTY } from "../../../../constants/constants";
import { FlowsContext } from "../../../../contexts/flowsContext";
import { typesContext } from "../../../../contexts/typesContext";
import { ParameterComponentType } from "../../../../types/components";
import { FlowsState } from "../../../../types/tabs";
import {
convertObjToArray,
convertValuesToNumbers,

View file

@ -7,8 +7,8 @@ import { SSEProvider } from "./SSEContext";
import { AlertProvider } from "./alertContext";
import { AuthProvider } from "./authContext";
import { DarkProvider } from "./darkContext";
import { LocationProvider } from "./locationContext";
import { TabsProvider } from "./flowsContext";
import { LocationProvider } from "./locationContext";
import { TypesProvider } from "./typesContext";
import { UndoRedoProvider } from "./undoRedoContext";

View file

@ -28,8 +28,8 @@ import ReactFlow, {
import GenericNode from "../../../../CustomNodes/GenericNode";
import Chat from "../../../../components/chatComponent";
import { alertContext } from "../../../../contexts/alertContext";
import { locationContext } from "../../../../contexts/locationContext";
import { FlowsContext } from "../../../../contexts/flowsContext";
import { locationContext } from "../../../../contexts/locationContext";
import { typesContext } from "../../../../contexts/typesContext";
import { undoRedoContext } from "../../../../contexts/undoRedoContext";
import { APIClassType } from "../../../../types/api";