mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-22 18:27:12 +00:00
fix: syntax errors
This commit is contained in:
@@ -38,7 +38,7 @@ import {
|
|||||||
SelectValue,
|
SelectValue,
|
||||||
} from '@/components/ui/select';
|
} from '@/components/ui/select';
|
||||||
import { toast } from 'sonner';
|
import { toast } from 'sonner';
|
||||||
import { i18nObj } from '@/i18n/I18nProvider';
|
import { extractI18nObject } from '@/i18n/I18nProvider';
|
||||||
|
|
||||||
const getExtraArgSchema = (t: (key: string) => string) =>
|
const getExtraArgSchema = (t: (key: string) => string) =>
|
||||||
z
|
z
|
||||||
@@ -184,7 +184,7 @@ export default function EmbeddingForm({
|
|||||||
setRequesterNameList(
|
setRequesterNameList(
|
||||||
requesterNameList.requesters.map((item) => {
|
requesterNameList.requesters.map((item) => {
|
||||||
return {
|
return {
|
||||||
label: i18nObj(item.label),
|
label: extractI18nObject(item.label),
|
||||||
value: item.name,
|
value: item.name,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -136,8 +136,15 @@ export class BackendClient extends BaseHttpClient {
|
|||||||
return this.get('/api/v1/pipelines/_/metadata');
|
return this.get('/api/v1/pipelines/_/metadata');
|
||||||
}
|
}
|
||||||
|
|
||||||
public getPipelines(): Promise<ApiRespPipelines> {
|
public getPipelines(
|
||||||
return this.get('/api/v1/pipelines');
|
sortBy?: string,
|
||||||
|
sortOrder?: string,
|
||||||
|
): Promise<ApiRespPipelines> {
|
||||||
|
const params = new URLSearchParams();
|
||||||
|
if (sortBy) params.append('sort_by', sortBy);
|
||||||
|
if (sortOrder) params.append('sort_order', sortOrder);
|
||||||
|
const queryString = params.toString();
|
||||||
|
return this.get(`/api/v1/pipelines${queryString ? `?${queryString}` : ''}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getPipeline(uuid: string): Promise<GetPipelineResponseData> {
|
public getPipeline(uuid: string): Promise<GetPipelineResponseData> {
|
||||||
|
|||||||
Reference in New Issue
Block a user