Skip to content

Commit 1fd273d

Browse files
authored
Azure foundry change (#83)
* Azure foundry change * PR comments
1 parent f151027 commit 1fd273d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/components/projects/projectId/attributes/attributeId/LLM/models/AzureFoundry.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { useEffect } from "react";
22
import { LocalStorageDropdown } from "@/submodules/react-components/components/LocalStorageDropdown";
33
import { InputWithSlider } from "@/submodules/react-components/components/InputWithSlider";
44
import { LLmPropsAzureFoundry } from "../types";
5+
import { Tooltip } from "@nextui-org/react";
6+
import { MemoIconInfoCircle } from "@/submodules/react-components/components/kern-icons/icons";
57

68

79
export default function AzureFoundry(props: LLmPropsAzureFoundry) {
@@ -16,9 +18,13 @@ export default function AzureFoundry(props: LLmPropsAzureFoundry) {
1618
return (
1719
<div className='flex flex-col gap-y-6'>
1820
<div>
19-
<label className="block mb-2 text-sm font-medium text-gray-900">Foundry URL</label>
21+
<label className="mb-2 text-sm font-medium text-gray-900 flex flex-row items-center gap-x-2">Foundry URL <Tooltip content={<div>The URL provided by Azure ending with /openai/v1/ like:<br /><br />https://&#123;deployment&#125;.services.ai.azure.com/openai/v1/</div>} color="invert" placement="right"><MemoIconInfoCircle className="w-4 h-5" /></Tooltip></label>
2022
<LocalStorageDropdown disabled={props.disabled} buttonName={props.llmConfig.apiBase ?? 'Select URL'} searchDefaultValue={props.llmConfig.apiBase} storageKey='AzureFoundryApiBase' onOptionSelected={(o) => props.setLlmConfig({ ...props.llmConfig, apiBase: o })} />
2123
</div>
24+
<div>
25+
<label className="block mb-2 text-sm font-medium text-gray-900">Foundry Model</label>
26+
<LocalStorageDropdown disabled={props.disabled} buttonName={props.llmConfig.model ?? 'Select Model'} searchDefaultValue={props.llmConfig.model} storageKey='AzureFoundryModel' onOptionSelected={(o) => props.setLlmConfig({ ...props.llmConfig, model: o })} />
27+
</div>
2228
{props.onlyEssential ? null : <>
2329

2430
<div className="grid grid-cols-2 xl:grid-cols-3 gap-2">

submodules/javascript-functions

submodules/tailwind-config

0 commit comments

Comments
 (0)