mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
field fixes
This commit is contained in:
parent
83b1949774
commit
212ea7ee7c
@ -12,7 +12,7 @@ export default function ApiPieLLMOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="ApipieLLMApiKey"
|
name="ApipieLLMApiKey"
|
||||||
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="APIpie API Key"
|
placeholder="APIpie API Key"
|
||||||
defaultValue={settings?.ApipieLLMApiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.ApipieLLMApiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
@ -60,7 +60,7 @@ function APIPieModelSelection({ settings }) {
|
|||||||
<select
|
<select
|
||||||
name="ApipieLLMModelPref"
|
name="ApipieLLMModelPref"
|
||||||
disabled={true}
|
disabled={true}
|
||||||
className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5"
|
className="bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
<option disabled={true} selected={true}>
|
<option disabled={true} selected={true}>
|
||||||
-- loading available models --
|
-- loading available models --
|
||||||
@ -78,7 +78,7 @@ function APIPieModelSelection({ settings }) {
|
|||||||
<select
|
<select
|
||||||
name="ApipieLLMModelPref"
|
name="ApipieLLMModelPref"
|
||||||
required={true}
|
required={true}
|
||||||
className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5"
|
className="bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
{Object.keys(groupedModels)
|
{Object.keys(groupedModels)
|
||||||
.sort()
|
.sort()
|
||||||
|
@ -32,7 +32,7 @@ export default function AwsBedrockLLMOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="AwsBedrockLLMAccessKeyId"
|
name="AwsBedrockLLMAccessKeyId"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="AWS Bedrock IAM User Access ID"
|
placeholder="AWS Bedrock IAM User Access ID"
|
||||||
defaultValue={
|
defaultValue={
|
||||||
settings?.AwsBedrockLLMAccessKeyId ? "*".repeat(20) : ""
|
settings?.AwsBedrockLLMAccessKeyId ? "*".repeat(20) : ""
|
||||||
@ -49,7 +49,7 @@ export default function AwsBedrockLLMOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="AwsBedrockLLMAccessKey"
|
name="AwsBedrockLLMAccessKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="AWS Bedrock IAM User Access Key"
|
placeholder="AWS Bedrock IAM User Access Key"
|
||||||
defaultValue={
|
defaultValue={
|
||||||
settings?.AwsBedrockLLMAccessKey ? "*".repeat(20) : ""
|
settings?.AwsBedrockLLMAccessKey ? "*".repeat(20) : ""
|
||||||
@ -67,7 +67,7 @@ export default function AwsBedrockLLMOptions({ settings }) {
|
|||||||
name="AwsBedrockLLMRegion"
|
name="AwsBedrockLLMRegion"
|
||||||
defaultValue={settings?.AwsBedrockLLMRegion || "us-west-2"}
|
defaultValue={settings?.AwsBedrockLLMRegion || "us-west-2"}
|
||||||
required={true}
|
required={true}
|
||||||
className="border-none bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
{AWS_REGIONS.map((region) => {
|
{AWS_REGIONS.map((region) => {
|
||||||
return (
|
return (
|
||||||
@ -90,7 +90,7 @@ export default function AwsBedrockLLMOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="AwsBedrockLLMModel"
|
name="AwsBedrockLLMModel"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Model id from AWS eg: meta.llama3.1-v0.1"
|
placeholder="Model id from AWS eg: meta.llama3.1-v0.1"
|
||||||
defaultValue={settings?.AwsBedrockLLMModel}
|
defaultValue={settings?.AwsBedrockLLMModel}
|
||||||
required={true}
|
required={true}
|
||||||
@ -105,7 +105,7 @@ export default function AwsBedrockLLMOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
name="AwsBedrockLLMTokenLimit"
|
name="AwsBedrockLLMTokenLimit"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Content window limit (eg: 4096)"
|
placeholder="Content window limit (eg: 4096)"
|
||||||
min={1}
|
min={1}
|
||||||
onScroll={(e) => e.target.blur()}
|
onScroll={(e) => e.target.blur()}
|
||||||
|
@ -43,7 +43,7 @@ function NativeModelSelection({ settings }) {
|
|||||||
<select
|
<select
|
||||||
name="NativeLLMModelPref"
|
name="NativeLLMModelPref"
|
||||||
disabled={true}
|
disabled={true}
|
||||||
className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
<option disabled={true} selected={true}>
|
<option disabled={true} selected={true}>
|
||||||
-- waiting for models --
|
-- waiting for models --
|
||||||
@ -62,7 +62,7 @@ function NativeModelSelection({ settings }) {
|
|||||||
<select
|
<select
|
||||||
name="NativeLLMModelPref"
|
name="NativeLLMModelPref"
|
||||||
required={true}
|
required={true}
|
||||||
className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
{customModels.length > 0 && (
|
{customModels.length > 0 && (
|
||||||
<optgroup label="Your loaded models">
|
<optgroup label="Your loaded models">
|
||||||
@ -88,7 +88,7 @@ function NativeModelSelection({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
name="NativeLLMTokenLimit"
|
name="NativeLLMTokenLimit"
|
||||||
className="bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="4096"
|
placeholder="4096"
|
||||||
min={1}
|
min={1}
|
||||||
onScroll={(e) => e.target.blur()}
|
onScroll={(e) => e.target.blur()}
|
||||||
|
@ -14,7 +14,7 @@ export default function OpenAiOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="OpenAiKey"
|
name="OpenAiKey"
|
||||||
className="bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="OpenAI API Key"
|
placeholder="OpenAI API Key"
|
||||||
defaultValue={settings?.OpenAiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.OpenAiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
|
@ -266,7 +266,7 @@ const PinAlert = memo(() => {
|
|||||||
return (
|
return (
|
||||||
<ModalWrapper isOpen={showAlert} noPortal={true}>
|
<ModalWrapper isOpen={showAlert} noPortal={true}>
|
||||||
<div className="relative w-full max-w-2xl max-h-full">
|
<div className="relative w-full max-w-2xl max-h-full">
|
||||||
<div className="relative bg-main-gradient rounded-lg shadow">
|
<div className="w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden">
|
||||||
<div className="flex items-start justify-between p-4 rounded-t border-gray-500/50">
|
<div className="flex items-start justify-between p-4 rounded-t border-gray-500/50">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<PushPin className="text-red-600 text-lg w-6 h-6" weight="fill" />
|
<PushPin className="text-red-600 text-lg w-6 h-6" weight="fill" />
|
||||||
|
@ -115,7 +115,7 @@ const ResetPasswordForm = ({ onSubmit }) => {
|
|||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
className="flex flex-col justify-center items-center relative rounded-2xl bg-theme-bg-secondary md:shadow-[0_4px_14px_rgba(0,0,0,0.25)] md:px-12 px-0 py-4 w-full md:w-fit -mt-24 md:-mt-28"
|
className="flex flex-col justify-center items-center relative rounded-2xl bg-theme-bg-secondary md:shadow-[0_4px_14px_rgba(0,0,0,0.25)] md:px-8 px-0 py-4 w-full md:w-fit mt-10 md:mt-0"
|
||||||
>
|
>
|
||||||
<div className="flex items-start justify-between pt-11 pb-9 w-screen md:w-full md:px-12 px-6">
|
<div className="flex items-start justify-between pt-11 pb-9 w-screen md:w-full md:px-12 px-6">
|
||||||
<div className="flex flex-col gap-y-4 w-full">
|
<div className="flex flex-col gap-y-4 w-full">
|
||||||
@ -136,7 +136,7 @@ const ResetPasswordForm = ({ onSubmit }) => {
|
|||||||
placeholder="New Password"
|
placeholder="New Password"
|
||||||
value={newPassword}
|
value={newPassword}
|
||||||
onChange={(e) => setNewPassword(e.target.value)}
|
onChange={(e) => setNewPassword(e.target.value)}
|
||||||
className="bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-md p-2.5 w-full h-[48px] md:w-[300px] md:h-[34px]"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -147,7 +147,7 @@ const ResetPasswordForm = ({ onSubmit }) => {
|
|||||||
placeholder="Confirm Password"
|
placeholder="Confirm Password"
|
||||||
value={confirmPassword}
|
value={confirmPassword}
|
||||||
onChange={(e) => setConfirmPassword(e.target.value)}
|
onChange={(e) => setConfirmPassword(e.target.value)}
|
||||||
className="bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-md p-2.5 w-full h-[48px] md:w-[300px] md:h-[34px]"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -108,7 +108,9 @@ export default function SingleUserAuth() {
|
|||||||
type="submit"
|
type="submit"
|
||||||
className="md:text-primary-button md:bg-transparent text-dark-text text-sm font-bold focus:ring-4 focus:outline-none rounded-md border-[1.5px] border-primary-button md:h-[34px] h-[48px] md:hover:text-white md:hover:bg-primary-button bg-primary-button focus:z-10 w-full"
|
className="md:text-primary-button md:bg-transparent text-dark-text text-sm font-bold focus:ring-4 focus:outline-none rounded-md border-[1.5px] border-primary-button md:h-[34px] h-[48px] md:hover:text-white md:hover:bg-primary-button bg-primary-button focus:z-10 w-full"
|
||||||
>
|
>
|
||||||
{loading ? t("login.multi-user.validating") : t("login.multi-user.login")}
|
{loading
|
||||||
|
? t("login.multi-user.validating")
|
||||||
|
: t("login.multi-user.login")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@ export default function OpenAiGenericTextToSpeechOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="url"
|
type="url"
|
||||||
name="TTSOpenAICompatibleEndpoint"
|
name="TTSOpenAICompatibleEndpoint"
|
||||||
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="http://localhost:7851/v1"
|
placeholder="http://localhost:7851/v1"
|
||||||
defaultValue={settings?.TTSOpenAICompatibleEndpoint}
|
defaultValue={settings?.TTSOpenAICompatibleEndpoint}
|
||||||
required={false}
|
required={false}
|
||||||
@ -31,7 +31,7 @@ export default function OpenAiGenericTextToSpeechOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="TTSOpenAICompatibleKey"
|
name="TTSOpenAICompatibleKey"
|
||||||
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="API Key"
|
placeholder="API Key"
|
||||||
defaultValue={
|
defaultValue={
|
||||||
settings?.TTSOpenAICompatibleKey ? "*".repeat(20) : ""
|
settings?.TTSOpenAICompatibleKey ? "*".repeat(20) : ""
|
||||||
@ -51,7 +51,7 @@ export default function OpenAiGenericTextToSpeechOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="TTSOpenAICompatibleVoiceModel"
|
name="TTSOpenAICompatibleVoiceModel"
|
||||||
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Your voice model identifier"
|
placeholder="Your voice model identifier"
|
||||||
defaultValue={settings?.TTSOpenAICompatibleVoiceModel}
|
defaultValue={settings?.TTSOpenAICompatibleVoiceModel}
|
||||||
required={true}
|
required={true}
|
||||||
|
@ -38,7 +38,7 @@ export default function WorkspaceChat({ loading, workspace }) {
|
|||||||
<>
|
<>
|
||||||
{loading === false && !workspace && (
|
{loading === false && !workspace && (
|
||||||
<ModalWrapper isOpen={true}>
|
<ModalWrapper isOpen={true}>
|
||||||
<div className="relative w-full md:max-w-2xl max-h-full bg-main-gradient rounded-lg shadow p-4">
|
<div className="relative w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border">
|
||||||
<div className="flex flex-col gap-y-4 w-full p-6 text-center">
|
<div className="flex flex-col gap-y-4 w-full p-6 text-center">
|
||||||
<p className="font-semibold text-red-500 text-xl">
|
<p className="font-semibold text-red-500 text-xl">
|
||||||
Workspace not found!
|
Workspace not found!
|
||||||
@ -50,7 +50,7 @@ export default function WorkspaceChat({ loading, workspace }) {
|
|||||||
<div className="flex w-full justify-center items-center mt-4">
|
<div className="flex w-full justify-center items-center mt-4">
|
||||||
<a
|
<a
|
||||||
href={paths.home()}
|
href={paths.home()}
|
||||||
className="border border-slate-200 text-white hover:bg-slate-200 hover:text-slate-800 px-4 py-2 rounded-lg text-sm items-center flex gap-x-2 transition-all duration-300"
|
className="transition-all duration-300 bg-white text-black hover:opacity-60 px-4 py-2 rounded-lg text-sm flex items-center gap-x-2"
|
||||||
>
|
>
|
||||||
Go back to homepage
|
Go back to homepage
|
||||||
</a>
|
</a>
|
||||||
|
@ -20,7 +20,7 @@ export function GoogleSearchOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="env::AgentGoogleSearchEngineId"
|
name="env::AgentGoogleSearchEngineId"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Google Search Engine Id"
|
placeholder="Google Search Engine Id"
|
||||||
defaultValue={settings?.AgentGoogleSearchEngineId}
|
defaultValue={settings?.AgentGoogleSearchEngineId}
|
||||||
required={true}
|
required={true}
|
||||||
@ -35,7 +35,7 @@ export function GoogleSearchOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="env::AgentGoogleSearchEngineKey"
|
name="env::AgentGoogleSearchEngineKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Google Search Engine API Key"
|
placeholder="Google Search Engine API Key"
|
||||||
defaultValue={
|
defaultValue={
|
||||||
settings?.AgentGoogleSearchEngineKey ? "*".repeat(20) : ""
|
settings?.AgentGoogleSearchEngineKey ? "*".repeat(20) : ""
|
||||||
@ -87,7 +87,7 @@ export function SearchApiOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="env::AgentSearchApiKey"
|
name="env::AgentSearchApiKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="SearchApi API Key"
|
placeholder="SearchApi API Key"
|
||||||
defaultValue={settings?.AgentSearchApiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.AgentSearchApiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
@ -102,7 +102,7 @@ export function SearchApiOptions({ settings }) {
|
|||||||
<select
|
<select
|
||||||
name="env::AgentSearchApiEngine"
|
name="env::AgentSearchApiEngine"
|
||||||
required={true}
|
required={true}
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
defaultValue={settings?.AgentSearchApiEngine || "google"}
|
defaultValue={settings?.AgentSearchApiEngine || "google"}
|
||||||
>
|
>
|
||||||
{SearchApiEngines.map(({ name, value }) => (
|
{SearchApiEngines.map(({ name, value }) => (
|
||||||
@ -114,7 +114,7 @@ export function SearchApiOptions({ settings }) {
|
|||||||
{/* <input
|
{/* <input
|
||||||
type="text"
|
type="text"
|
||||||
name="env::AgentSearchApiEngine"
|
name="env::AgentSearchApiEngine"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="SearchApi engine (Google, Bing...)"
|
placeholder="SearchApi engine (Google, Bing...)"
|
||||||
defaultValue={settings?.AgentSearchApiEngine || "google"}
|
defaultValue={settings?.AgentSearchApiEngine || "google"}
|
||||||
required={true}
|
required={true}
|
||||||
@ -149,7 +149,7 @@ export function SerperDotDevOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="env::AgentSerperApiKey"
|
name="env::AgentSerperApiKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Serper.dev API Key"
|
placeholder="Serper.dev API Key"
|
||||||
defaultValue={settings?.AgentSerperApiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.AgentSerperApiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
@ -184,7 +184,7 @@ export function BingSearchOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="env::AgentBingSearchApiKey"
|
name="env::AgentBingSearchApiKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Bing Web Search API Key"
|
placeholder="Bing Web Search API Key"
|
||||||
defaultValue={settings?.AgentBingSearchApiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.AgentBingSearchApiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
@ -247,7 +247,7 @@ export function SerplySearchOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="env::AgentSerplyApiKey"
|
name="env::AgentSerplyApiKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Serply API Key"
|
placeholder="Serply API Key"
|
||||||
defaultValue={settings?.AgentSerplyApiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.AgentSerplyApiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
@ -270,7 +270,7 @@ export function SearXNGOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="url"
|
type="url"
|
||||||
name="env::AgentSearXNGApiUrl"
|
name="env::AgentSearXNGApiUrl"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="SearXNG API Key"
|
placeholder="SearXNG API Key"
|
||||||
defaultValue={settings?.AgentSearXNGApiUrl}
|
defaultValue={settings?.AgentSearXNGApiUrl}
|
||||||
required={true}
|
required={true}
|
||||||
@ -304,7 +304,7 @@ export function TavilySearchOptions({ settings }) {
|
|||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
name="env::AgentTavilyApiKey"
|
name="env::AgentTavilyApiKey"
|
||||||
className="border-none bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Tavily API Key"
|
placeholder="Tavily API Key"
|
||||||
defaultValue={settings?.AgentTavilyApiKey ? "*".repeat(20) : ""}
|
defaultValue={settings?.AgentTavilyApiKey ? "*".repeat(20) : ""}
|
||||||
required={true}
|
required={true}
|
||||||
|
@ -183,7 +183,7 @@ function FeatureVerification({ children }) {
|
|||||||
onSubmit={acceptTos}
|
onSubmit={acceptTos}
|
||||||
className="relative w-full max-w-2xl max-h-full"
|
className="relative w-full max-w-2xl max-h-full"
|
||||||
>
|
>
|
||||||
<div className="relative bg-main-gradient rounded-lg shadow">
|
<div className="w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden">
|
||||||
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-500/50">
|
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-500/50">
|
||||||
<h3 className="text-xl font-semibold text-white">
|
<h3 className="text-xl font-semibold text-white">
|
||||||
Terms of use for experimental features
|
Terms of use for experimental features
|
||||||
|
@ -189,7 +189,7 @@ export function MessageLimitInput({ enabled, limit, updateState, role }) {
|
|||||||
}}
|
}}
|
||||||
value={limit}
|
value={limit}
|
||||||
min={1}
|
min={1}
|
||||||
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:border-white block w-60 p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -156,7 +156,7 @@ function WorkspaceSelector({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-y-2">
|
<div className="flex flex-col gap-y-2">
|
||||||
<div className="min-w-[150px] max-w-[300px] h-[32px] p-[10px] rounded-lg flex items-center bg-dark-highlight mt-1">
|
<div className="min-w-[150px] max-w-[300px] h-[32px] p-[10px] rounded-lg flex items-center bg-theme-settings-input-bg text-white mt-1">
|
||||||
<MagnifyingGlass size={16} className="text-white" />
|
<MagnifyingGlass size={16} className="text-white" />
|
||||||
<input
|
<input
|
||||||
value={query}
|
value={query}
|
||||||
@ -168,7 +168,7 @@ function WorkspaceSelector({
|
|||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
placeholder="Enter a workspace name"
|
placeholder="Enter a workspace name"
|
||||||
className="bg-transparent p-1 px-2 appearance-none outline-none h-full w-full text-white text-xs placeholder:`text-white/50`"
|
className="bg-transparent p-1 px-2 appearance-none outline-none h-full w-full text-white text-xs placeholder:text-white/50"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col items-center -ml-2">
|
<div className="flex flex-col items-center -ml-2">
|
||||||
|
@ -57,7 +57,7 @@ export default function OrderDetails({ setSettings, setStep }) {
|
|||||||
<input
|
<input
|
||||||
type="email"
|
type="email"
|
||||||
name="email"
|
name="email"
|
||||||
className="bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full max-w-[200px] p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="jdoe@example.com"
|
placeholder="jdoe@example.com"
|
||||||
required={true}
|
required={true}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
@ -77,7 +77,7 @@ export default function OrderDetails({ setSettings, setStep }) {
|
|||||||
<select
|
<select
|
||||||
name="baseModel"
|
name="baseModel"
|
||||||
required={true}
|
required={true}
|
||||||
className="bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full max-w-[200px] p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
<option disabled value="">
|
<option disabled value="">
|
||||||
-- select a base model --
|
-- select a base model --
|
||||||
@ -110,7 +110,7 @@ export default function OrderDetails({ setSettings, setStep }) {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="modelName"
|
name="modelName"
|
||||||
className="bg-zinc-900 text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full max-w-[200px] p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="My really cool model!"
|
placeholder="My really cool model!"
|
||||||
required={true}
|
required={true}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
@ -13,7 +13,7 @@ export default function ThemePreference() {
|
|||||||
<select
|
<select
|
||||||
value={theme}
|
value={theme}
|
||||||
onChange={(e) => setTheme(e.target.value)}
|
onChange={(e) => setTheme(e.target.value)}
|
||||||
className="bg-zinc-900 w-fit mt-2 px-4 border-gray-500 text-white text-sm rounded-lg block py-2"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
{Object.entries(availableThemes).map(([key, value]) => (
|
{Object.entries(availableThemes).map(([key, value]) => (
|
||||||
<option key={key} value={key}>
|
<option key={key} value={key}>
|
||||||
|
@ -90,8 +90,8 @@ export default function ChatRow({ chat, onDelete }) {
|
|||||||
const TextPreview = ({ text, closeModal }) => {
|
const TextPreview = ({ text, closeModal }) => {
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full md:max-w-2xl max-h-full">
|
<div className="relative w-full md:max-w-2xl max-h-full">
|
||||||
<div className="relative bg-main-gradient rounded-lg shadow">
|
<div className="w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden">
|
||||||
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-600">
|
<div className="flex items-center justify-between p-6 border-b rounded-t border-theme-modal-border">
|
||||||
<h3 className="text-xl font-semibold text-white">Viewing Text</h3>
|
<h3 className="text-xl font-semibold text-white">Viewing Text</h3>
|
||||||
<button
|
<button
|
||||||
onClick={closeModal}
|
onClick={closeModal}
|
||||||
|
@ -108,8 +108,8 @@ export default function ChatRow({ chat, onDelete }) {
|
|||||||
const TextPreview = ({ text, closeModal }) => {
|
const TextPreview = ({ text, closeModal }) => {
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full md:max-w-2xl max-h-full">
|
<div className="relative w-full md:max-w-2xl max-h-full">
|
||||||
<div className="relative bg-main-gradient rounded-lg shadow">
|
<div className="w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden">
|
||||||
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-600">
|
<div className="flex items-center justify-between p-6 border-b rounded-t border-theme-modal-border">
|
||||||
<h3 className="text-xl font-semibold text-white">Viewing Text</h3>
|
<h3 className="text-xl font-semibold text-white">Viewing Text</h3>
|
||||||
<button
|
<button
|
||||||
onClick={closeModal}
|
onClick={closeModal}
|
||||||
|
@ -32,7 +32,7 @@ export default function NewUserModal() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full max-w-2xl max-h-full">
|
<div className="relative w-full max-w-2xl max-h-full">
|
||||||
<div className="relative bg-main-gradient rounded-lg shadow">
|
<div className="relative w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border">
|
||||||
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-500/50">
|
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-500/50">
|
||||||
<h3 className="text-xl font-semibold text-white">
|
<h3 className="text-xl font-semibold text-white">
|
||||||
Create a new account
|
Create a new account
|
||||||
@ -51,7 +51,7 @@ export default function NewUserModal() {
|
|||||||
<input
|
<input
|
||||||
name="username"
|
name="username"
|
||||||
type="text"
|
type="text"
|
||||||
className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="My username"
|
placeholder="My username"
|
||||||
minLength={2}
|
minLength={2}
|
||||||
required={true}
|
required={true}
|
||||||
@ -68,7 +68,7 @@ export default function NewUserModal() {
|
|||||||
<input
|
<input
|
||||||
name="password"
|
name="password"
|
||||||
type="password"
|
type="password"
|
||||||
className="bg-zinc-900 border border-gray-500 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Your password"
|
placeholder="Your password"
|
||||||
required={true}
|
required={true}
|
||||||
minLength={8}
|
minLength={8}
|
||||||
|
@ -28,7 +28,7 @@ export default function ChatModelSelection({
|
|||||||
name="chatModel"
|
name="chatModel"
|
||||||
required={true}
|
required={true}
|
||||||
disabled={true}
|
disabled={true}
|
||||||
className="bg-zinc-900 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
>
|
>
|
||||||
<option disabled={true} selected={true}>
|
<option disabled={true} selected={true}>
|
||||||
-- waiting for models --
|
-- waiting for models --
|
||||||
|
@ -215,7 +215,7 @@ function FreeFormLLMInput({ workspace, setHasChanges }) {
|
|||||||
name="chatModel"
|
name="chatModel"
|
||||||
defaultValue={workspace?.chatModel || ""}
|
defaultValue={workspace?.chatModel || ""}
|
||||||
onChange={() => setHasChanges(true)}
|
onChange={() => setHasChanges(true)}
|
||||||
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
|
||||||
placeholder="Enter model name exactly as referenced in the API (e.g., gpt-3.5-turbo)"
|
placeholder="Enter model name exactly as referenced in the API (e.g., gpt-3.5-turbo)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,8 +61,8 @@ export default function AddMemberModal({ closeModal, workspace, users }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full max-w-[550px] max-h-full">
|
<div className="relative w-full max-w-[550px] max-h-full">
|
||||||
<div className="relative bg-main-gradient rounded-xl shadow-[0_4px_14px_rgba(0,0,0,0.25)]">
|
<div className="w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden">
|
||||||
<div className="flex items-start justify-between p-4 border-b rounded-t border-gray-500/50">
|
<div className="flex items-center justify-between p-6 border-b rounded-t border-theme-modal-border">
|
||||||
<div className="flex items-center gap-x-4">
|
<div className="flex items-center gap-x-4">
|
||||||
<h3 className="text-base font-semibold text-white">Users</h3>
|
<h3 className="text-base font-semibold text-white">Users</h3>
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
|
Loading…
Reference in New Issue
Block a user