Skip to content

Commit

Permalink
chore: removed flag
Browse files Browse the repository at this point in the history
  • Loading branch information
janrtvld committed Jan 13, 2025
1 parent 6948a40 commit 8f90bb1
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 67 deletions.
3 changes: 1 addition & 2 deletions apps/easypid/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
EXPO_PUBLIC_WALLET_SERVICE_PROVIDER_URL=
EXPO_PUBLIC_APP_TYPE=PARADYM_WALLET # or FUNKE_WALLET
EXPO_PUBLIC_WALLET_SERVICE_PROVIDER_URL=
36 changes: 0 additions & 36 deletions apps/easypid/src/config/appType.ts

This file was deleted.

19 changes: 0 additions & 19 deletions apps/easypid/src/config/features.ts

This file was deleted.

4 changes: 1 addition & 3 deletions apps/easypid/src/features/menu/FunkeSettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ import React from 'react'
import { TextBackButton } from 'packages/app/src'
import { LocalAiContainer } from './components/LocalAiContainer'

import { useFeatureFlag } from '@easypid/hooks/useFeatureFlag'
import { useScrollViewPosition } from '@package/app/src/hooks'
import { useDevelopmentMode } from '../../hooks/useDevelopmentMode'

export function FunkeSettingsScreen() {
const { handleScroll, isScrolledByOffset, scrollEventThrottle } = useScrollViewPosition()
const [isDevelopmentModeEnabled, setIsDevelopmentModeEnabled] = useDevelopmentMode()
const isOverAskingAiEnabled = useFeatureFlag('AI_ANALYSIS')

return (
<FlexPage gap="$0" paddingHorizontal="$0">
Expand All @@ -30,7 +28,7 @@ export function FunkeSettingsScreen() {
value={isDevelopmentModeEnabled ?? false}
onChange={setIsDevelopmentModeEnabled}
/>
{isOverAskingAiEnabled && <LocalAiContainer />}
<LocalAiContainer />
</YStack>
<YStack btw="$0.5" borderColor="$grey-200" pt="$4" mx="$-4" px="$4" bg="$background">
<TextBackButton />
Expand Down
7 changes: 0 additions & 7 deletions apps/easypid/src/hooks/useOverAskingAi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useEffect, useState } from 'react'
import { useLLM } from '@easypid/llm'
import type { OverAskingInput, OverAskingResponse } from '@easypid/use-cases/OverAskingApi'
import { EXCLUDED_ATTRIBUTES_FOR_ANALYSIS, checkForOverAskingApi } from '@easypid/use-cases/OverAskingApi'
import { useFeatureFlag } from './useFeatureFlag'

const fallbackResponse: OverAskingResponse = {
validRequest: 'could_not_determine',
Expand All @@ -15,7 +14,6 @@ export function useOverAskingAi() {
const [overAskingResponse, setOverAskingResponse] = useState<OverAskingResponse>()

const { generate, response, error, isModelReady, isModelGenerating, interrupt } = useLLM()
const isOverAskingAiEnabled = useFeatureFlag('AI_ANALYSIS')

useEffect(() => {
if (error) {
Expand All @@ -37,11 +35,6 @@ export function useOverAskingAi() {
}, [response, isModelGenerating, error])

const checkForOverAsking = async (input: OverAskingInput) => {
if (!isOverAskingAiEnabled) {
console.debug('Over-asking AI feature flag is not enabled, skipping')
return
}

setIsProcessingOverAsking(true)
if (isModelReady) {
console.debug('Local LLM ready, using local LLM')
Expand Down

0 comments on commit 8f90bb1

Please sign in to comment.