你好呀!💡
这里是Evil0ctal,一个臭打游戏的,喜欢摄影,同时在编程的路上越走越远...
我的代码写的都很垃圾(I Know)
最喜欢的游戏:Minecraft CSGO Rainbow6
如果你也玩Minecraft的话,有空可以来我的服务器一起玩!
不要忘了每天都要坚持吃蔬菜噢!
用于将Minecraft Java服务器插件的配置yml文件翻译成不同的语言并且保持插件或游戏的保留关键字,基于OpenAI的ChatGPT 3.5模型以及内置中文和英文两套提示词,开箱即用,准确率99%,支持大型文件的拆分以及合并,支持批量处理多个文件。
License: Apache License 2.0
你好呀!💡
这里是Evil0ctal,一个臭打游戏的,喜欢摄影,同时在编程的路上越走越远...
我的代码写的都很垃圾(I Know)
最喜欢的游戏:Minecraft CSGO Rainbow6
如果你也玩Minecraft的话,有空可以来我的服务器一起玩!
不要忘了每天都要坚持吃蔬菜噢!
输入路径是文件夹,开始批量处理...
Input path is a directory, start batch processing...
当前正在处理文件:config.yml
Currently processing file: config.yml
文件内容长度98003超过最大长度1024,开始使用PKVPM算法拆分内容...
File content length 98003 exceeds the maximum length 1024, start splitting the content using PKVPM algorithm...
原始文件内容长度:98003
共拆分为38部分进行翻译
翻译第1部分...
Translating the 1 part...
第1部分翻译失败:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-zk25838f6. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
如果再次失败,请检查文件内容。
The 1 part of the translation failed: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-zk25838f6. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
If it fails again, please check the file content.
Traceback (most recent call last):
File "C:\Users\11610\Desktop\ChatGPT-Minecraft-Plugin-Translater-main\main.py", line 274, in
main(_output_language=output_language,
File "C:\Users\11610\Desktop\ChatGPT-Minecraft-Plugin-Translater-main\main.py", line 236, in main
translated_count = process_directory(_input_path, _model, _output_language, _max_tokens, _output_path, log_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\11610\Desktop\ChatGPT-Minecraft-Plugin-Translater-main\main.py", line 218, in process_directory
process_file(file_path, _model, _output_language, _max_tokens, output_folder, log_path)
File "C:\Users\11610\Desktop\ChatGPT-Minecraft-Plugin-Translater-main\main.py", line 173, in process_file
translated_part = openai_interact(prompt=_prompt, part=part, model=_model, max_tokens=_max_tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\11610\Desktop\ChatGPT-Minecraft-Plugin-Translater-main\main.py", line 73, in openai_interact
response = client.chat.completions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\11610\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai_utils_utils.py", line 275, in wrapper
return func(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\11610\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\resources\chat\completions.py", line 663, in create
return self._post(
^^^^^^^^^^^
File "C:\Users\11610\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai_base_client.py", line 1200, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\11610\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai_base_client.py", line 889, in request
return self._request(
^^^^^^^^^^^^^^
File "C:\Users\11610\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai_base_client.py", line 980, in _request
raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-zk258************************************38f6. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.