🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Support configuration of QianFan API base_url to fix #1392
shenchucheng6edf7001d649
diff --git a/metagpt/provider/qianfan_api.py b/metagpt/provider/qianfan_api.pyindex 3d78c8bfc..04334f305 100644--- a/metagpt/provider/qianfan_api.py+++ b/metagpt/provider/qianfan_api.py@@ -50,6 +50,9 @@ class QianFanLLM(BaseLLM):else:raise ValueError("Set the `access_key`&`secret_key` or `api_key`&`secret_key` first")+ if self.config.base_url:+ os.environ.setdefault("QIANFAN_BASE_URL", self.config.base_url)+support_system_pairs = [("ERNIE-Bot-4", "completions_pro"), # (model, corresponding-endpoint)("ERNIE-Bot-8k", "ernie_bot_8k"),