From 74941170aaec1838fbc0e99963588458addcc9b8 Mon Sep 17 00:00:00 2001 From: Ranhuiryan Date: Wed, 21 Jun 2023 16:19:26 +0800 Subject: [PATCH 1/2] update azure use instruction --- docs/use_azure.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/use_azure.md b/docs/use_azure.md index 626b132..f1c27ef 100644 --- a/docs/use_azure.md +++ b/docs/use_azure.md @@ -96,6 +96,15 @@ ● 部署名(不是模型名) +# 修改 config.py + +``` +AZURE_ENDPOINT = "填入终结点" +AZURE_API_KEY = "填入azure openai api的密钥" +AZURE_API_VERSION = "2023-05-15" # 默认使用 2023-05-15 版本,无需修改 +AZURE_ENGINE = "填入部署名" + +``` # API的使用 接下来就是具体怎么使用API了,还是可以参考官方文档:[快速入门 - 开始通过 Azure OpenAI 服务使用 ChatGPT 和 GPT-4 - Azure OpenAI Service | Microsoft Learn](https://learn.microsoft.com/zh-cn/azure/cognitive-services/openai/chatgpt-quickstart?pivots=programming-language-python) From 33d2e75aac8063f9d8fe615599fccf948b48424e Mon Sep 17 00:00:00 2001 From: Ranhuiryan Date: Wed, 21 Jun 2023 16:19:49 +0800 Subject: [PATCH 2/2] add azure-gpt35 to model list --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index b173862..557b4e9 100644 --- a/config.py +++ b/config.py @@ -47,7 +47,7 @@ MAX_RETRY = 2 # 模型选择是 (注意: LLM_MODEL是默认选中的模型, 同时它必须被包含在AVAIL_LLM_MODELS切换列表中 ) LLM_MODEL = "gpt-3.5-turbo" # 可选 ↓↓↓ -AVAIL_LLM_MODELS = ["gpt-3.5-turbo-16k", "gpt-3.5-turbo", "api2d-gpt-3.5-turbo", "gpt-4", "api2d-gpt-4", "chatglm", "moss", "newbing", "newbing-free", "stack-claude"] +AVAIL_LLM_MODELS = ["gpt-3.5-turbo-16k", "gpt-3.5-turbo", "azure-gpt35", "api2d-gpt-3.5-turbo", "gpt-4", "api2d-gpt-4", "chatglm", "moss", "newbing", "newbing-free", "stack-claude"] # P.S. 其他可用的模型还包括 ["newbing-free", "jittorllms_rwkv", "jittorllms_pangualpha", "jittorllms_llama"] # 本地LLM模型如ChatGLM的执行方式 CPU/GPU