mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Support configuration of QianFan API base_url to fix #1392
This commit is contained in:
parent
96fa8bc4b0
commit
6edf7001d6
1 changed files with 3 additions and 0 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue