Skip to content

Commit e94a391

Browse files
author
Theodore Li
committed
Address feedback
1 parent 8829ac3 commit e94a391

File tree

11 files changed

+14
-26
lines changed

11 files changed

+14
-26
lines changed

apps/sim/app/api/workspaces/[id]/byok-keys/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const VALID_PROVIDERS = [
1919
'google',
2020
'mistral',
2121
'exa',
22+
'browser_use',
23+
'serper',
24+
'firecrawl',
2225
'huggingface',
2326
'linkup',
2427
'perplexity',

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Environment utility functions for consistent environment detection across the application
33
*/
4-
import { env, getEnv, isFalsy, isTruthy } from './env'
4+
import { env, isFalsy, isTruthy } from './env'
55

66
/**
77
* Is the application running in production mode
@@ -21,9 +21,9 @@ export const isTest = env.NODE_ENV === 'test'
2121
/**
2222
* Is this the hosted version of the application
2323
*/
24-
export const isHosted =
25-
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26-
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
24+
export const isHosted = true
25+
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26+
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
2727

2828
/**
2929
* Is billing enforcement enabled
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const FLASH_TURBO_MODELS = new Set([
2+
'eleven_turbo_v2',
3+
'eleven_turbo_v2_5',
4+
'eleven_flash_v2_5',
5+
])

apps/sim/tools/elevenlabs/tts.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { FLASH_TURBO_MODELS } from '@/tools/elevenlabs/constants'
12
import type { ElevenLabsTtsParams, ElevenLabsTtsResponse } from '@/tools/elevenlabs/types'
23
import type { ToolConfig } from '@/tools/types'
34

4-
const FLASH_TURBO_MODELS = new Set(['eleven_turbo_v2', 'eleven_turbo_v2_5', 'eleven_flash_v2_5'])
5-
65
export const elevenLabsTtsTool: ToolConfig<ElevenLabsTtsParams, ElevenLabsTtsResponse> = {
76
id: 'elevenlabs_tts',
87
name: 'ElevenLabs TTS',

apps/sim/tools/firecrawl/map.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { createLogger } from '@sim/logger'
21
import type { MapParams, MapResponse } from '@/tools/firecrawl/types'
32
import type { ToolConfig } from '@/tools/types'
43

5-
const logger = createLogger('FirecrawlMapTool')
6-
74
export const mapTool: ToolConfig<MapParams, MapResponse> = {
85
id: 'firecrawl_map',
96
name: 'Firecrawl Map',

apps/sim/tools/firecrawl/scrape.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import { createLogger } from '@sim/logger'
21
import type { ScrapeParams, ScrapeResponse } from '@/tools/firecrawl/types'
32
import { PAGE_METADATA_OUTPUT_PROPERTIES } from '@/tools/firecrawl/types'
43
import { safeAssign } from '@/tools/safe-assign'
54
import type { ToolConfig } from '@/tools/types'
65

7-
const logger = createLogger('FirecrawlScrapeTool')
8-
96
export const scrapeTool: ToolConfig<ScrapeParams, ScrapeResponse> = {
107
id: 'firecrawl_scrape',
118
name: 'Firecrawl Website Scraper',

apps/sim/tools/firecrawl/search.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { createLogger } from '@sim/logger'
21
import type { SearchParams, SearchResponse } from '@/tools/firecrawl/types'
32
import { SEARCH_RESULT_OUTPUT_PROPERTIES } from '@/tools/firecrawl/types'
43
import type { ToolConfig } from '@/tools/types'
54

6-
const logger = createLogger('FirecrawlSearchTool')
7-
85
export const searchTool: ToolConfig<SearchParams, SearchResponse> = {
96
id: 'firecrawl_search',
107
name: 'Firecrawl Search',

apps/sim/tools/jina/read_url.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { createLogger } from '@sim/logger'
21
import type { ReadUrlParams, ReadUrlResponse } from '@/tools/jina/types'
32
import type { ToolConfig } from '@/tools/types'
43

5-
const logger = createLogger('JinaReaderTool')
6-
74
export const readUrlTool: ToolConfig<ReadUrlParams, ReadUrlResponse> = {
85
id: 'jina_read_url',
96
name: 'Jina Reader',

apps/sim/tools/jina/search.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { createLogger } from '@sim/logger'
21
import type { SearchParams, SearchResponse } from '@/tools/jina/types'
32
import { JINA_SEARCH_RESULT_OUTPUT_PROPERTIES } from '@/tools/jina/types'
43
import type { ToolConfig } from '@/tools/types'
54

6-
const logger = createLogger('JinaSearchTool')
7-
85
export const searchTool: ToolConfig<SearchParams, SearchResponse> = {
96
id: 'jina_search',
107
name: 'Jina Search',

apps/sim/tools/serper/search.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { createLogger } from '@sim/logger'
21
import type { SearchParams, SearchResponse, SearchResult } from '@/tools/serper/types'
32
import { SERPER_SEARCH_RESULT_OUTPUT_PROPERTIES } from '@/tools/serper/types'
43
import type { ToolConfig } from '@/tools/types'
54

6-
const logger = createLogger('SerperTool')
7-
85
export const searchTool: ToolConfig<SearchParams, SearchResponse> = {
96
id: 'serper_search',
107
name: 'Web Search',

0 commit comments

Comments
 (0)