From ca34e6246ea75f5a0794de2dd9b1992ec7c6b4f7 Mon Sep 17 00:00:00 2001 From: Caiyishuai <39987654+Caiyishuai@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:21:43 +0800 Subject: [PATCH] update --- .gitignore | 3 +++ .../llm_test/ERNIE_KEYS - 副本.txt | 5 ---- BTExpansionCode/llm_test/ERNIE_KEYS.txt | 5 ---- BTExpansionCode/llm_test/ERNIE_KEYS_6.txt | 17 -------------- .../llm_test/LLM_Evaluation_Kit/llms/gpt3.py | 3 ++- .../LLM_Evaluation_Kit/llms/gpt3_old.py | 2 +- .../apis/ERNIE_KEYS.txt | 23 +++++++++++++++++++ .../llms/gpt3.py | 3 ++- 8 files changed, 31 insertions(+), 30 deletions(-) delete mode 100644 BTExpansionCode/llm_test/ERNIE_KEYS - 副本.txt delete mode 100644 BTExpansionCode/llm_test/ERNIE_KEYS.txt delete mode 100644 BTExpansionCode/llm_test/ERNIE_KEYS_6.txt diff --git a/.gitignore b/.gitignore index a3008b2..fddad46 100644 --- a/.gitignore +++ b/.gitignore @@ -165,3 +165,6 @@ cython_debug/ # pyc files __pycache__/ +BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3.py +BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/apis/ERNIE_KEYS.txt +BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/llms/gpt3.py diff --git a/BTExpansionCode/llm_test/ERNIE_KEYS - 副本.txt b/BTExpansionCode/llm_test/ERNIE_KEYS - 副本.txt deleted file mode 100644 index a782dd5..0000000 --- a/BTExpansionCode/llm_test/ERNIE_KEYS - 副本.txt +++ /dev/null @@ -1,5 +0,0 @@ -wxACDRkIWRr0rG4g6GkxKl0f -dBdFoFSgbYGX0GGXY39LEXxTSCcS2Nb1 - -K3o8g2Zref6Cdd6rlrSthqTs -NVxhNg7u5fjIdwGdnsCOLEpmj96hmDuZ diff --git a/BTExpansionCode/llm_test/ERNIE_KEYS.txt b/BTExpansionCode/llm_test/ERNIE_KEYS.txt deleted file mode 100644 index a782dd5..0000000 --- a/BTExpansionCode/llm_test/ERNIE_KEYS.txt +++ /dev/null @@ -1,5 +0,0 @@ -wxACDRkIWRr0rG4g6GkxKl0f -dBdFoFSgbYGX0GGXY39LEXxTSCcS2Nb1 - -K3o8g2Zref6Cdd6rlrSthqTs -NVxhNg7u5fjIdwGdnsCOLEpmj96hmDuZ diff --git a/BTExpansionCode/llm_test/ERNIE_KEYS_6.txt b/BTExpansionCode/llm_test/ERNIE_KEYS_6.txt deleted file mode 100644 index dc52b20..0000000 --- a/BTExpansionCode/llm_test/ERNIE_KEYS_6.txt +++ /dev/null @@ -1,17 +0,0 @@ -wxACDRkIWRr0rG4g6GkxKl0f -dBdFoFSgbYGX0GGXY39LEXxTSCcS2Nb1 - -K3o8g2Zref6Cdd6rlrSthqTs -NVxhNg7u5fjIdwGdnsCOLEpmj96hmDuZ - -HBp3c0yTyAfmQL0kb5iMU35d -yAuCqz6mWfHNnmKoGu95lmNdQtaQvRWc - -4sGXeIuq6e8TRiU73SnOAWzr -Y4h3W8nLaMf87vgEm8cEhHEYyf7ULNem - -2hwfuWll4oPm9oG1yVvwlb9w -2LklMkCx7xi69Kc1w7O3KHlKoGl7LNMv - -wZZ8edDGdH6bOUf58vcx8ctd -ui1BSEBQQLDmZXQR4iNVGhwxHgPXYP8Y \ No newline at end of file diff --git a/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3.py b/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3.py index e95e76f..53fd29d 100644 --- a/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3.py +++ b/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3.py @@ -6,7 +6,8 @@ from openai import OpenAI class LLMGPT3(): def __init__(self): self.client = OpenAI( - base_url="URL", api_key="Your-Key") + base_url="https://api.xty.app/v1", api_key="sk-FLyhhGWDsCZCTbmq640c5c61Ad3d45078eDe56CdDbF01c0a" + ) def request(self, message): # question completion = self.client.chat.completions.create( diff --git a/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3_old.py b/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3_old.py index 85b4295..c9039d4 100644 --- a/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3_old.py +++ b/BTExpansionCode/llm_test/LLM_Evaluation_Kit/llms/gpt3_old.py @@ -6,7 +6,7 @@ from openai import OpenAI class LLMGPT3(): def __init__(self): self.client = OpenAI( - base_url="https://api.chatgptid.net/v1", api_key="sk-U3lHYdKBlISo2gssCa715e292bF5463bAb5898638eC3D0Ea" + base_url="", api_key="" ) def request(self,message): # question diff --git a/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/apis/ERNIE_KEYS.txt b/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/apis/ERNIE_KEYS.txt index e69de29..e06ca99 100644 --- a/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/apis/ERNIE_KEYS.txt +++ b/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/apis/ERNIE_KEYS.txt @@ -0,0 +1,23 @@ +wxACDRkIWRr0rG4g6GkxKl0f +dBdFoFSgbYGX0GGXY39LEXxTSCcS2Nb1 + +K3o8g2Zref6Cdd6rlrSthqTs +NVxhNg7u5fjIdwGdnsCOLEpmj96hmDuZ + +wxACDRkIWRr0rG4g6GkxKl0f +dBdFoFSgbYGX0GGXY39LEXxTSCcS2Nb1 + +K3o8g2Zref6Cdd6rlrSthqTs +NVxhNg7u5fjIdwGdnsCOLEpmj96hmDuZ + +HBp3c0yTyAfmQL0kb5iMU35d +yAuCqz6mWfHNnmKoGu95lmNdQtaQvRWc + +4sGXeIuq6e8TRiU73SnOAWzr +Y4h3W8nLaMf87vgEm8cEhHEYyf7ULNem + +2hwfuWll4oPm9oG1yVvwlb9w +2LklMkCx7xi69Kc1w7O3KHlKoGl7LNMv + +wZZ8edDGdH6bOUf58vcx8ctd +ui1BSEBQQLDmZXQR4iNVGhwxHgPXYP8Y \ No newline at end of file diff --git a/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/llms/gpt3.py b/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/llms/gpt3.py index b784f7e..248b395 100644 --- a/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/llms/gpt3.py +++ b/BTExpansionCode/llm_test/LLM_Evaluation_Kit_最终存档0627/llms/gpt3.py @@ -6,7 +6,8 @@ from openai import OpenAI class LLMGPT3(): def __init__(self): self.client = OpenAI( - base_url="URL", api_key="Your-Key") + base_url="https://api.xty.app/v1", api_key="sk-FLyhhGWDsCZCTbmq640c5c61Ad3d45078eDe56CdDbF01c0a" + ) def request(self, message): # question completion = self.client.chat.completions.create(