update sk AzureChatCompletion from base_url to endpoint

This commit is contained in:
better629 2023-12-22 17:43:10 +08:00
parent a6346c7bce
commit b6eb776190
3 changed files with 5 additions and 3 deletions

View file

@ -22,7 +22,7 @@ def make_sk_kernel():
kernel.add_chat_service(
"chat_completion",
AzureChatCompletion(
deployment_name=CONFIG.deployment_name, base_url=CONFIG.openai_base_url, api_key=CONFIG.openai_api_key
deployment_name=CONFIG.deployment_name, endpoint=CONFIG.openai_base_url, api_key=CONFIG.openai_api_key
),
)
else: