Skip to content

Commit

Permalink
Merge branch 'main' into feat/public-share-oss
Browse files Browse the repository at this point in the history
  • Loading branch information
harini-venkataraman authored Jul 11, 2024
2 parents a3d23b5 + e888153 commit 0fc7589
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,8 +959,9 @@ def _fetch_single_pass_response(
prompt_host=settings.PROMPT_HOST,
prompt_port=settings.PROMPT_PORT,
)
include_metadata = {TSPKeys.INCLUDE_METADATA: True}

answer = responder.single_pass_extraction(payload)
answer = responder.single_pass_extraction(payload, include_metadata)
# TODO: Make use of dataclasses
if answer["status"] == "ERROR":
error_message = answer.get("error", None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ function CombinedOutput({ docId, setFilledFields }) {
selectedProfile={selectedProfile}
llmProfiles={llmProfiles}
activeKey={activeKey}
adapterData={adapterData}
/>
);
}
Expand Down
85 changes: 43 additions & 42 deletions frontend/src/components/custom-tools/tool-ide/ToolIde.css
Original file line number Diff line number Diff line change
@@ -1,103 +1,104 @@
/* Styles for ToolIde */

.tool-ide-layout {
background-color: var(--page-bg-2);
height: 100%;
display: flex;
flex-direction: column;
background-color: var(--page-bg-2);
height: 100%;
display: flex;
flex-direction: column;
}

.tool-ide-body {
flex: 1;
overflow-y: hidden;
flex: 1;
overflow-y: hidden;
}

.tool-ide-body-2 {
display: flex;
flex-direction: column;
height: 100%;
display: flex;
flex-direction: column;
height: 100%;
}

.tool-ide-main {
flex-grow: 1;
overflow-y: hidden;
flex-grow: 1;
overflow-y: hidden;
}

.tool-ide-col {
height: 100%;
height: 100%;
}

.tool-ide-main-row {
height: 100%;
height: 100%;
}

.tool-ide-footer {
padding: 0px 12px 12px 12px;
padding: 0px 12px 12px 12px;
}

.tool-ide-prompts {
padding: 12px 6px 1px 12px;
height: 100%;
padding: 12px 6px 1px 12px;
height: 100% !important;
}

.tool-ide-pdf {
padding: 12px 12px 1px 6px;
height: 100%;
padding: 12px 12px 1px 6px;
height: 100%;
}

.tool-ide-prompts > div, .tool-ide-pdf > div {
background-color: var(--white);
height: 100%;
.tool-ide-prompts > div,
.tool-ide-pdf > div {
background-color: var(--white);
height: 100%;
}

.tool-ide-actions {
padding: 0px 12px;
padding: 0px 12px;
}

.tool-ide-logs {
height: 10vh;
height: 10vh;
}

.tool-ide-sider {
background-color: transparent !important;
height: 100%;
background-color: transparent !important;
height: 100%;
}

.tool-ide-sider-layout {
height: 100%;
background-color: transparent !important;
height: 100%;
background-color: transparent !important;
}

.tool-ide-sider-btn {
position: fixed;
transform: translate(-50%, 100%);
z-index: 1;
transition: "left 0.1s linear";
position: fixed;
transform: translate(-50%, 100%);
z-index: 1;
transition: "left 0.1s linear";
}

.tool-ide-collapse-panel {
background-color: var(--white);
border: none;
border-radius: 0px;
background-color: var(--white);
border: none;
border-radius: 0px;
}

/* Remove padding from modal content */
.custom-modal-wrapper .ant-modal-content {
padding: 0;
height: 90vh;
overflow-y: auto;
padding: 0;
height: 90vh;
overflow-y: auto;
}

.custom-modal-wrapper .tools-prompts-header-layout {
border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
}

.custom-modal-gen-index .ant-modal {
top: 20px;
right: 20px;
position: absolute !important;
top: 20px;
right: 20px;
position: absolute !important;
}

.tool-ide-main-card .card-text {
font-size: 12px;
font-size: 12px;
}
84 changes: 49 additions & 35 deletions prompt-service/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fc7589

Please sign in to comment.