feat: support show model display name (#887)

This commit is contained in:
Joel
2023-08-17 15:13:35 +08:00
committed by GitHub
parent f42e7d1a61
commit cd78adb0ab
5 changed files with 20 additions and 6 deletions

View File

@@ -70,6 +70,7 @@ export enum ModelFeature {
// backend defined model struct: /console/api/workspaces/current/models/model-type/:model_type
export type BackendModel = {
model_name: string
model_display_name: string // not always exist
model_type: ModelType
model_provider: {
provider_name: ProviderEnum