tianyun 1 年間 前
コミット
7ea4a2b4c9
3 ファイル変更2 行追加37 行削除
  1. 0 35
      mrdoc.py
  2. 1 1
      project/compress_dir_img.py
  3. 1 1
      tmp1.py

+ 0 - 35
mrdoc.py

@@ -1,35 +0,0 @@
-# 测试类
-import unittest as test
-
-
-class Test(test.TestCase):
-
-    def testCreateBag(self):
-        # coding:utf-8
-
-        import requests
-
-        base_url = 'https://doc.tianyunperfect.cn'
-        token = '872472c70b11605167ce32c2350673e4576772ff6017ab6c899d20c5'
-
-        # url = base_url + '/api/create_project/?token={}'.format(token)
-        #
-        # strs = 'MySQL、Redis、ES、Mongo、Oracle、Kafka、RocketMQ、K8S、Hadoop、Flink、猫、狗、鸟、海底动物、乐器、花、植物'
-        # for i in strs.split('、'):
-        #     data = {
-        #         'name': i.lower(),
-        #         'desc': i,
-        #         'role': 0
-        #     }
-        #     resp = requests.post(url=url, data=data,verify=False)
-        #     print(resp.json())
-
-    def test_get_list(self):
-        # coding:utf-8
-        import requests
-        base_url = 'https://doc.tianyunperfect.cn'
-        token = '872472c70b11605167ce32c2350673e4576772ff6017ab6c899d20c5'
-        url = base_url + '/api/get_projects/?token={}'.format(token)
-
-        resp = requests.get(url=url, verify=False)
-        print(resp.json())

+ 1 - 1
project/compress_dir_img.py

@@ -16,7 +16,7 @@ def convert_to_webp(dir_path):
 
     common_image_extensions = [".jpg", ".jpeg", ".png"]
     for subdir, dirs, files in os.walk(dir_path):
-        print(files)
+        # print(files)
 
         for file in files:
             filepath = subdir + os.sep + file

+ 1 - 1
tmp1.py

@@ -9,7 +9,7 @@ completion = client.chat.completions.create(
     model="moonshot-v1-8k",
     messages=[
         {"role": "system", "content": "你是 Kimi,由 Moonshot AI 提供的人工智能助手,回答我的问题"},
-        {"role": "user", "content": "你好,写一个100字的黄色笑话?"}
+        {"role": "user", "content": "你好,1+3=?"}
     ],
     temperature=0.3,
 )