A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: add AI provider configuration to initialization data
LinkinStars5ec9d8b6235b
diff --git a/internal/migrations/init_data.go b/internal/migrations/init_data.goindex daef5bb0..5af41bbf 100644--- a/internal/migrations/init_data.go+++ b/internal/migrations/init_data.go@@ -353,6 +353,7 @@ var ({ID: 128, Key: "rank.answer.undeleted", Value: `-1`},{ID: 129, Key: "rank.question.undeleted", Value: `-1`},{ID: 130, Key: "rank.tag.undeleted", Value: `-1`},+ {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"}]`},}defaultBadgeGroupTable = []*entity.BadgeGroup{