Format
This commit is contained in:
parent
8221079a32
commit
ddf14638e5
6 changed files with 6 additions and 9 deletions
|
|
@ -26,10 +26,7 @@ class AmazonBedrockComponent(CustomComponent):
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"credentials_profile_name": {"display_name": "Credentials Profile Name"},
|
"credentials_profile_name": {"display_name": "Credentials Profile Name"},
|
||||||
"streaming": {
|
"streaming": {"display_name": "Streaming", "field_type": "bool"},
|
||||||
"display_name": "Streaming",
|
|
||||||
"field_type": "bool"
|
|
||||||
},
|
|
||||||
"code": {"show": False},
|
"code": {"show": False},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,8 @@ class AmazonKendraRetrieverComponent(CustomComponent):
|
||||||
region_name=region_name,
|
region_name=region_name,
|
||||||
credentials_profile_name=credentials_profile_name,
|
credentials_profile_name=credentials_profile_name,
|
||||||
attribute_filter=attribute_filter,
|
attribute_filter=attribute_filter,
|
||||||
user_context=user_context) # type: ignore
|
user_context=user_context,
|
||||||
|
) # type: ignore
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ValueError("Could not connect to AmazonKendra API.") from e
|
raise ValueError("Could not connect to AmazonKendra API.") from e
|
||||||
return output
|
return output
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ import {
|
||||||
FETCH_ERROR_MESSAGE,
|
FETCH_ERROR_MESSAGE,
|
||||||
} from "./constants/constants";
|
} from "./constants/constants";
|
||||||
import { alertContext } from "./contexts/alertContext";
|
import { alertContext } from "./contexts/alertContext";
|
||||||
import { locationContext } from "./contexts/locationContext";
|
|
||||||
import { FlowsContext } from "./contexts/flowsContext";
|
import { FlowsContext } from "./contexts/flowsContext";
|
||||||
|
import { locationContext } from "./contexts/locationContext";
|
||||||
import { typesContext } from "./contexts/typesContext";
|
import { typesContext } from "./contexts/typesContext";
|
||||||
import Router from "./routes";
|
import Router from "./routes";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ import { TOOLTIP_EMPTY } from "../../../../constants/constants";
|
||||||
import { FlowsContext } from "../../../../contexts/flowsContext";
|
import { FlowsContext } from "../../../../contexts/flowsContext";
|
||||||
import { typesContext } from "../../../../contexts/typesContext";
|
import { typesContext } from "../../../../contexts/typesContext";
|
||||||
import { ParameterComponentType } from "../../../../types/components";
|
import { ParameterComponentType } from "../../../../types/components";
|
||||||
import { FlowsState } from "../../../../types/tabs";
|
|
||||||
import {
|
import {
|
||||||
convertObjToArray,
|
convertObjToArray,
|
||||||
convertValuesToNumbers,
|
convertValuesToNumbers,
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import { SSEProvider } from "./SSEContext";
|
||||||
import { AlertProvider } from "./alertContext";
|
import { AlertProvider } from "./alertContext";
|
||||||
import { AuthProvider } from "./authContext";
|
import { AuthProvider } from "./authContext";
|
||||||
import { DarkProvider } from "./darkContext";
|
import { DarkProvider } from "./darkContext";
|
||||||
import { LocationProvider } from "./locationContext";
|
|
||||||
import { TabsProvider } from "./flowsContext";
|
import { TabsProvider } from "./flowsContext";
|
||||||
|
import { LocationProvider } from "./locationContext";
|
||||||
import { TypesProvider } from "./typesContext";
|
import { TypesProvider } from "./typesContext";
|
||||||
import { UndoRedoProvider } from "./undoRedoContext";
|
import { UndoRedoProvider } from "./undoRedoContext";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ import ReactFlow, {
|
||||||
import GenericNode from "../../../../CustomNodes/GenericNode";
|
import GenericNode from "../../../../CustomNodes/GenericNode";
|
||||||
import Chat from "../../../../components/chatComponent";
|
import Chat from "../../../../components/chatComponent";
|
||||||
import { alertContext } from "../../../../contexts/alertContext";
|
import { alertContext } from "../../../../contexts/alertContext";
|
||||||
import { locationContext } from "../../../../contexts/locationContext";
|
|
||||||
import { FlowsContext } from "../../../../contexts/flowsContext";
|
import { FlowsContext } from "../../../../contexts/flowsContext";
|
||||||
|
import { locationContext } from "../../../../contexts/locationContext";
|
||||||
import { typesContext } from "../../../../contexts/typesContext";
|
import { typesContext } from "../../../../contexts/typesContext";
|
||||||
import { undoRedoContext } from "../../../../contexts/undoRedoContext";
|
import { undoRedoContext } from "../../../../contexts/undoRedoContext";
|
||||||
import { APIClassType } from "../../../../types/api";
|
import { APIClassType } from "../../../../types/api";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue