mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
disable klavis tools by default
This commit is contained in:
parent
078f785a9e
commit
1b47a03ff1
5 changed files with 41 additions and 16 deletions
|
|
@ -7,6 +7,7 @@ export const USE_RAG_S3_UPLOADS = process.env.USE_RAG_S3_UPLOADS === 'true';
|
||||||
export const USE_GEMINI_FILE_PARSING = process.env.USE_GEMINI_FILE_PARSING === 'true';
|
export const USE_GEMINI_FILE_PARSING = process.env.USE_GEMINI_FILE_PARSING === 'true';
|
||||||
export const USE_BILLING = process.env.USE_BILLING === 'true';
|
export const USE_BILLING = process.env.USE_BILLING === 'true';
|
||||||
export const USE_COMPOSIO_TOOLS = process.env.USE_COMPOSIO_TOOLS === 'true';
|
export const USE_COMPOSIO_TOOLS = process.env.USE_COMPOSIO_TOOLS === 'true';
|
||||||
|
export const USE_KLAVIS_TOOLS = process.env.USE_KLAVIS_TOOLS === 'true';
|
||||||
|
|
||||||
// Hardcoded flags
|
// Hardcoded flags
|
||||||
export const USE_MULTIPLE_PROJECTS = true;
|
export const USE_MULTIPLE_PROJECTS = true;
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,21 @@ import { CustomServers } from './CustomServers';
|
||||||
import { Composio } from './Composio';
|
import { Composio } from './Composio';
|
||||||
import type { Key } from 'react';
|
import type { Key } from 'react';
|
||||||
|
|
||||||
export function ToolsConfig({ useComposioTools }: { useComposioTools: boolean }) {
|
export function ToolsConfig({
|
||||||
const [activeTab, setActiveTab] = useState(useComposioTools ? 'composio' : 'hosted');
|
useComposioTools,
|
||||||
|
useKlavisTools
|
||||||
|
}: {
|
||||||
|
useComposioTools: boolean;
|
||||||
|
useKlavisTools: boolean;
|
||||||
|
}) {
|
||||||
|
let defaultActiveTab = 'custom';
|
||||||
|
if (useKlavisTools) {
|
||||||
|
defaultActiveTab = 'hosted';
|
||||||
|
}
|
||||||
|
if (useComposioTools) {
|
||||||
|
defaultActiveTab = 'composio';
|
||||||
|
}
|
||||||
|
const [activeTab, setActiveTab] = useState(defaultActiveTab);
|
||||||
|
|
||||||
const handleTabChange = (key: Key) => {
|
const handleTabChange = (key: Key) => {
|
||||||
setActiveTab(key.toString());
|
setActiveTab(key.toString());
|
||||||
|
|
@ -30,9 +43,10 @@ export function ToolsConfig({ useComposioTools }: { useComposioTools: boolean })
|
||||||
</div>
|
</div>
|
||||||
</Tab>
|
</Tab>
|
||||||
)}
|
)}
|
||||||
|
{useKlavisTools && (
|
||||||
<Tab key="hosted" title={
|
<Tab key="hosted" title={
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<span>Tools Library</span>
|
<span>Klavis</span>
|
||||||
<span className="leading-none px-1.5 py-[2px] text-[9px] font-medium bg-linear-to-r from-pink-500 to-violet-500 text-white rounded-full">
|
<span className="leading-none px-1.5 py-[2px] text-[9px] font-medium bg-linear-to-r from-pink-500 to-violet-500 text-white rounded-full">
|
||||||
BETA
|
BETA
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -42,6 +56,7 @@ export function ToolsConfig({ useComposioTools }: { useComposioTools: boolean })
|
||||||
<HostedServers onSwitchTab={key => setActiveTab(key)} />
|
<HostedServers onSwitchTab={key => setActiveTab(key)} />
|
||||||
</div>
|
</div>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
)}
|
||||||
<Tab key="custom" title="Custom MCP Servers">
|
<Tab key="custom" title="Custom MCP Servers">
|
||||||
<div className="mt-4 p-6">
|
<div className="mt-4 p-6">
|
||||||
<CustomServers />
|
<CustomServers />
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { Suspense } from 'react';
|
||||||
import { ToolsConfig } from './components/ToolsConfig';
|
import { ToolsConfig } from './components/ToolsConfig';
|
||||||
import { PageHeader } from '@/components/ui/page-header';
|
import { PageHeader } from '@/components/ui/page-header';
|
||||||
import { requireActiveBillingSubscription } from '@/app/lib/billing';
|
import { requireActiveBillingSubscription } from '@/app/lib/billing';
|
||||||
import { USE_COMPOSIO_TOOLS } from '@/app/lib/feature_flags';
|
import { USE_COMPOSIO_TOOLS, USE_KLAVIS_TOOLS } from '@/app/lib/feature_flags';
|
||||||
|
|
||||||
export default async function ToolsPage() {
|
export default async function ToolsPage() {
|
||||||
await requireActiveBillingSubscription();
|
await requireActiveBillingSubscription();
|
||||||
|
|
@ -15,7 +15,10 @@ export default async function ToolsPage() {
|
||||||
/>
|
/>
|
||||||
<div className="flex-1 p-6">
|
<div className="flex-1 p-6">
|
||||||
<Suspense fallback={<div>Loading...</div>}>
|
<Suspense fallback={<div>Loading...</div>}>
|
||||||
<ToolsConfig useComposioTools={USE_COMPOSIO_TOOLS} />
|
<ToolsConfig
|
||||||
|
useComposioTools={USE_COMPOSIO_TOOLS}
|
||||||
|
useKlavisTools={USE_KLAVIS_TOOLS}
|
||||||
|
/>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ services:
|
||||||
- VOICE_API_URL=${VOICE_API_URL}
|
- VOICE_API_URL=${VOICE_API_URL}
|
||||||
- PROVIDER_DEFAULT_MODEL=${PROVIDER_DEFAULT_MODEL}
|
- PROVIDER_DEFAULT_MODEL=${PROVIDER_DEFAULT_MODEL}
|
||||||
- RAG_UPLOADS_DIR=/app/uploads
|
- RAG_UPLOADS_DIR=/app/uploads
|
||||||
|
- USE_KLAVIS_TOOLS=${USE_KLAVIS_TOOLS}
|
||||||
- KLAVIS_API_KEY=${KLAVIS_API_KEY}
|
- KLAVIS_API_KEY=${KLAVIS_API_KEY}
|
||||||
- KLAVIS_GITHUB_CLIENT_ID=${KLAVIS_GITHUB_CLIENT_ID}
|
- KLAVIS_GITHUB_CLIENT_ID=${KLAVIS_GITHUB_CLIENT_ID}
|
||||||
- KLAVIS_GOOGLE_CLIENT_ID=${KLAVIS_GOOGLE_CLIENT_ID}
|
- KLAVIS_GOOGLE_CLIENT_ID=${KLAVIS_GOOGLE_CLIENT_ID}
|
||||||
|
|
|
||||||
5
start.sh
5
start.sh
|
|
@ -14,6 +14,11 @@ if [ -n "$COMPOSIO_API_KEY" ]; then
|
||||||
export USE_COMPOSIO_TOOLS=true
|
export USE_COMPOSIO_TOOLS=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# enable klavis tools if API key is set
|
||||||
|
if [ -n "$KLAVIS_API_KEY" ]; then
|
||||||
|
export USE_KLAVIS_TOOLS=true
|
||||||
|
fi
|
||||||
|
|
||||||
# Start with the base command and profile flags
|
# Start with the base command and profile flags
|
||||||
CMD="docker-compose"
|
CMD="docker-compose"
|
||||||
CMD="$CMD --profile setup_qdrant"
|
CMD="$CMD --profile setup_qdrant"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue