This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch fix-install
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/fix-install by this push:
     new 9d3700b9 fix: update AI provider configuration ID in default settings
9d3700b9 is described below

commit 9d3700b911bf801d4f82a72976b70b6205dadb4f
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})

Reply via email to