This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/answer.git
commit a6bfd402b68091b4e84f98255c48caa9dbefe17d Author: LinkinStars <[email protected]> AuthorDate: Thu Jan 29 17:01:18 2026 +0800 fix: update AI provider configuration ID in default settings --- internal/migrations/v31.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/migrations/v31.go b/internal/migrations/v31.go index 89b97047..428c5828 100644 --- a/internal/migrations/v31.go +++ b/internal/migrations/v31.go @@ -61,7 +61,7 @@ func addAPIKey(ctx context.Context, x *xorm.Engine) error { } defaultConfigTable := []*entity.Config{ - {ID: 10000, Key: "ai_config.provider", Value: `[{"default_api_host":"https://api.openai.com","display_name":"OpenAI","name":"openai"},{"default_api_host":"https://generativelanguage.googleapis.com","display_name":"Gemini","name":"gemini"},{"default_api_host":"https://api.anthropic.com","display_name":"Anthropic","name":"anthropic"}]`}, + {ID: 131, Key: "ai_config.provider", Value: `[{"default_api_host":"https://api.openai.com","display_name":"OpenAI","name":"openai"},{"default_api_host":"https://generativelanguage.googleapis.com","display_name":"Gemini","name":"gemini"},{"default_api_host":"https://api.anthropic.com","display_name":"Anthropic","name":"anthropic"}]`}, } for _, c := range defaultConfigTable { exist, err := x.Context(ctx).Get(&entity.Config{Key: c.Key})
