Add model information field to service information

This commit is contained in:
Liujian
2025-02-19 17:24:12 +08:00
parent e8887c1454
commit 273f9ace58
9 changed files with 62 additions and 3 deletions
+6
View File
@@ -351,6 +351,12 @@ func (i *imlInitController) createAIService(ctx context.Context, teamID string,
if input.Id == "" {
input.Id = uuid.New().String()
}
providerInfo, err := i.providerModule.Provider(ctx, *input.Provider)
if err != nil {
return err
}
input.Model = &providerInfo.DefaultLLM
if input.Prefix == "" {
if len(input.Id) < 9 {
input.Prefix = input.Id