We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d90b1 commit 4d68ff0Copy full SHA for 4d68ff0
src/services/api/aiAssist.ts
@@ -1,8 +1,12 @@
1
import type {ChatDelta, ChatMessage, QuotaInfo} from '../../features/chat/types/chat';
2
+import {aiAssistBackend as AI_ASSISTANT_BACKEND} from '../../store';
3
4
import {BaseYdbAPI} from './base';
5
6
export class AIAssistAPI extends BaseYdbAPI {
7
+ getPath(path: string) {
8
+ return `${AI_ASSISTANT_BACKEND ?? ''}${path}`;
9
+ }
10
async sendMessage(
11
messages: ChatMessage[],
12
onDelta: (delta: ChatDelta) => void,
src/store/index.ts
@@ -5,6 +5,7 @@ export {
configureStore,
customBackend,
metaBackend,
+ aiAssistBackend,
codeAssistBackend,
webVersion,
} from './configureStore';
0 commit comments