Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { useEffect } from "react";
import { LocalStorageDropdown } from "@/submodules/react-components/components/LocalStorageDropdown";
import { InputWithSlider } from "@/submodules/react-components/components/InputWithSlider";
import { LLmPropsAzureFoundry } from "../types";
import { Tooltip } from "@nextui-org/react";
import { MemoIconInfoCircle } from "@/submodules/react-components/components/kern-icons/icons";


export default function AzureFoundry(props: LLmPropsAzureFoundry) {
Expand All @@ -16,9 +18,13 @@ export default function AzureFoundry(props: LLmPropsAzureFoundry) {
return (
<div className='flex flex-col gap-y-6'>
<div>
<label className="block mb-2 text-sm font-medium text-gray-900">Foundry URL</label>
<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>
<LocalStorageDropdown disabled={props.disabled} buttonName={props.llmConfig.apiBase ?? 'Select URL'} searchDefaultValue={props.llmConfig.apiBase} storageKey='AzureFoundryApiBase' onOptionSelected={(o) => props.setLlmConfig({ ...props.llmConfig, apiBase: o })} />
</div>
<div>
<label className="block mb-2 text-sm font-medium text-gray-900">Foundry Model</label>
<LocalStorageDropdown disabled={props.disabled} buttonName={props.llmConfig.model ?? 'Select Model'} searchDefaultValue={props.llmConfig.model} storageKey='AzureFoundryModel' onOptionSelected={(o) => props.setLlmConfig({ ...props.llmConfig, model: o })} />
</div>
{props.onlyEssential ? null : <>

<div className="grid grid-cols-2 xl:grid-cols-3 gap-2">
Expand Down
2 changes: 1 addition & 1 deletion submodules/javascript-functions
2 changes: 1 addition & 1 deletion submodules/tailwind-config