* feat(ui): rework for player look * remove unused code * move summary button and block inside xray * move class * fixup mobile controls panel * change notes, change xray feat selection
22 lines
566 B
TypeScript
22 lines
566 B
TypeScript
import BaseService from 'App/services/BaseService';
|
|
|
|
export default class AiService extends BaseService {
|
|
/**
|
|
* @returns stream of text symbols
|
|
* */
|
|
async getSummary(sessionId: string): Promise<string | null> {
|
|
const r = await this.client.post(
|
|
`/sessions/${sessionId}/intelligent/summary`,
|
|
);
|
|
|
|
return r.json()
|
|
}
|
|
|
|
async getSearchFilters(query: string): Promise<Record<string, any>> {
|
|
const r = await this.client.post('/intelligent/search', {
|
|
question: query
|
|
})
|
|
const { data } = await r.json();
|
|
return data
|
|
}
|
|
}
|