湛卢代码大模型
湛卢代码大模型,融合海量代码库、技术文档、研发知识,为研发人员提供智能、高效的编程支持。可准确理解开发者的意图,将产品需求、原型图转换为高效的代码,从而大幅度提升编码效率,优化代码质量。
- 兼容 Visual Studio Code、JetBrains IDEs 等主流 IDE;
- 支持 Java、Python、Go、C/C++/C#、JavaScript、TypeScript、PHP、Ruby、Rust、Scala 等主流编程语言。
ZhanLu is a large-scale model,which integrates massive code repositories, technical documents and R&D knowledge to provide intelligent and efficient programming support for developers. It comprehends the intention of developers accurately, and converts product requirements and the prototype diagrams into efficient code, so as to improve the efficiency of coding and also optimize the quality of code.
- ZhanLu is available with Visual Studio Code, JetBrains IDEs.
- 支持 Java、Python、Go、C/C++/C#、JavaScript、TypeScript、PHP、Ruby、Rust、Scala 等主流编程语言。
功能使用
单行补全 Single Line Completions
编码过程中稍做停顿,湛卢即可按照它的理解,给你补全整行代码。
During the coding process, ZhanLu completes entire lines of code based on its understanding when there's a brief pause.
![zhanlu Single Line Completions](https://gitee.com/babyshow123/images/raw/master/zhanlu/zhanlu_single_line_completions.png)
多行代码块补全 Multi-line Completions
当待触发推荐的上下文,具备明显的完整逻辑关系(如一个新的方法、函数、判断、循环体等),按下Enter键或按下Ctrl+Alt+K可推荐一个完整的代码块。
When the context for completions is clear, such as a new method, function, conditional statement, or loop, press Enter or Ctrl+Alt+K , ZhanLu can suggest a complete code block.
![zhanlu Multi-line Completions](https://gitee.com/babyshow123/images/raw/master/zhanlu/zhanlu_multi_line_completions.png)
注释生成代码 Comments generate code
通过写注释,触发代码补全,在IDE中显示补全内容。
Write comments to trigger completion and show the completion in the IDE.
![zhanlu Comments generate code](https://gitee.com/babyshow123/images/raw/master/zhanlu/zhanlu_comments_generate_code.png)
智能对话界面 Smart Chat Interface
输入问题描述,湛卢为你生成代码。
Type a natural language description, and ZhanLu generates code for you.
![zhanlu Chat Interface for smart Code](https://gitee.com/babyshow123/images/raw/master/zhanlu/jet_chat.png)
生成多行注释与行间注释 Generate Method and Inline Comments
分析一个方法、函数、类,生成符合规范的注释,同时也可以识别函数中复杂逻辑从而逐行增加注释。
Analyze methods, functions, and classes to generate standardized comments, it can also identify complex logic in a function and add comments line by line.
![zhanlu Generate Docstring and Inline Comments](https://gitee.com/babyshow123/images/raw/master/zhanlu/jet_generate_comments.png)
生成单元测试 Generate Unit Tests
针对一段函数(方法),生成其对应的单元测试代码。
Generate unit test code for a given function or method.
![zhanlu Generate Unit Tests](https://gitee.com/babyshow123/images/raw/master/zhanlu/jet_generate_unit_tests.png)
代码优化纠错 Code Optimization and Error Correction
支持对长函数等复杂问题代码进行优化
Support generating optimization for complex problem codes, including long function codes etc.
![zhanlu Code Optimization and Error Correction](https://gitee.com/babyshow123/images/raw/master/zhanlu/zhanlu_code_optimization.png)
代码翻译 Code Translation
![zhanlu Code Translation](https://gitee.com/babyshow123/images/raw/master/zhanlu/jet_code_translation.png)
代码解释 Code Explanation
支持对代码片段生成解释
Support generating explanations for code snippets.
![zhanlu Code Explanation](https://gitee.com/babyshow123/images/raw/master/zhanlu/zhanlu_code_explain.png)
FAQ:
湛卢支持哪些语言? Which languages does ZhanLu support?
湛卢支持C/C++、Java、Python、Go、JavaScript、TypeScript、Rust、PHP、Kotlin、ObjectC等100+主流编程语言。
ZhanLu supports 100+ mainstream programming languages including C/C++, Java, Python, Go, JavaScript, TypeScript, Rust, PHP, Kotlin, ObjectC, etc.
是否会上传代码?上传哪些代码? Does ZhanLu upload code? What kind of code is uploaded?
正常使用湛卢过程中需要利用正在编写的文件中的上文以及其他相关文件,来推理出接下来的下文。因此确实会需要通过网络将编写的代码文件内容传输给模型推理。我们承诺不使用这部分上传的代码做任何积累、分析、加工等后续动作。
In common use of ZhanLu, it needs utilizing the context in the file being written and other related files to infer the subsequent context. Hence, it does require transmitting the content of the edited code file over the network for model inference. We commit that we will not use the uploaded code for any accumulation, analysis, processing, or subsequent actions.