Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remote engine management #4364

Merged
merged 31 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b7a86a0
feat: remote engine management
urmauur Dec 30, 2024
68e05ee
chore: fix linter issue
urmauur Dec 30, 2024
323700f
chore: remove unused imports
louis-menlo Jan 2, 2025
22e9db0
fix: populate engines, models and legacy settings (#4403)
louis-menlo Jan 6, 2025
b62db41
fix: check exist path before reading
louis-menlo Jan 6, 2025
3eb4295
fix: engines and models persist - race condition
louis-menlo Jan 6, 2025
3e48008
chore: update issue state
urmauur Jan 6, 2025
dc84557
test: update test cases
louis-menlo Jan 6, 2025
7fd8950
chore: bring back Cortex extension settings
louis-menlo Jan 6, 2025
e108f49
chore: setup button gear / plus based apikey
urmauur Jan 6, 2025
3fa8f41
chore: fix remote engine from welcome screen
urmauur Jan 8, 2025
7fd0dd6
chore: resolve linter issue
urmauur Jan 8, 2025
0df0983
chore: support request headers template
louis-menlo Jan 8, 2025
db75c9b
chore: update engines using header_template instead of api_key_template
louis-menlo Jan 8, 2025
a50582a
chore: update models on changes
louis-menlo Jan 8, 2025
5d8d4b6
fix: anthropic response template
louis-menlo Jan 8, 2025
f47392b
chore: fix welcome screen and debounce update value input
urmauur Jan 8, 2025
0468afb
chore: update engines list on changes
louis-menlo Jan 8, 2025
8e6ed11
chore: update engines list on change
louis-menlo Jan 8, 2025
67625df
chore: update desc form add modal remote engines
urmauur Jan 8, 2025
c11ec3c
chore: bump cortex version to latest RC
louis-menlo Jan 13, 2025
06188a2
chore: fix linter
louis-menlo Jan 13, 2025
a15d2ba
fix: transform payload of Anthropic and OpenAI
louis-menlo Jan 13, 2025
9094d02
fix: typo
urmauur Jan 14, 2025
5d56d1e
fix: openrouter model id for auto routing
louis-menlo Jan 14, 2025
dffb37d
chore: remove remote engine URL setting
louis-menlo Jan 14, 2025
fe67931
chore: add cohere engine and model support
louis-menlo Jan 14, 2025
a54e0f6
fix: should not clean on app launch - models list display issue
louis-menlo Jan 14, 2025
3511583
fix: local engine check logic
louis-menlo Jan 14, 2025
ca55df3
chore: bump app version to latest release 0.5.13
louis-menlo Jan 14, 2025
a63322b
test: fix failed tests
louis-menlo Jan 14, 2025
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
Prev Previous commit
Next Next commit
chore: fix linter issue
urmauur authored and louis-menlo committed Jan 14, 2025
commit 68e05eed9dad55aee5e52131cd24ceb3ae5625af
8 changes: 6 additions & 2 deletions web/screens/Settings/Engines/RemoteEngineSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable react/no-unescaped-entities */

import React, { useCallback, useRef } from 'react'

import {
@@ -11,13 +14,14 @@ interface EngineConfig extends OriginalEngineConfig {

import { ScrollArea, Input, TextArea } from '@janhq/joi'

import { ChevronRight } from 'lucide-react'
import { twMerge } from 'tailwind-merge'

import {
updateEngine,
useGetEngines,
useGetRemoteModels,
} from '@/hooks/useEngineManagement'
import { twMerge } from 'tailwind-merge'
import { ChevronRight } from 'lucide-react'

const RemoteEngineSettings = ({
engine: name,
5 changes: 3 additions & 2 deletions web/screens/Settings/SettingDetail/index.tsx
Original file line number Diff line number Diff line change
@@ -6,14 +6,15 @@ import AppearanceOptions from '@/screens/Settings/Appearance'
import ExtensionCatalog from '@/screens/Settings/CoreExtensions'
import Engines from '@/screens/Settings/Engines'
import LocalEngineSettings from '@/screens/Settings/Engines/LocalEngineSettings'
import RemoteEngineSettings from '@/screens/Settings/Engines/RemoteEngineSettings'
import ExtensionSetting from '@/screens/Settings/ExtensionSetting'
import Hotkeys from '@/screens/Settings/Hotkeys'
import MyModels from '@/screens/Settings/MyModels'
import Privacy from '@/screens/Settings/Privacy'

import { selectedSettingAtom } from '@/helpers/atoms/Setting.atom'
import { isLocalEngine } from '@/utils/modelEngine'
import RemoteEngineSettings from '@/screens/Settings/Engines/RemoteEngineSettings'

import { selectedSettingAtom } from '@/helpers/atoms/Setting.atom'

const SettingDetail = () => {
const selectedSetting = useAtomValue(selectedSettingAtom)