Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions README-en.md

This file was deleted.

22 changes: 12 additions & 10 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
# ant-codeAI
中文 · [English](./README.md)

通过使用AI技术生成高可用代码,web(React,Vue,Tailwind CSS),native(react native)等代码,使用GPT-4 Vision生成,通过截图转化到代码,可以自定义prompt生成可控代码。提供白板功能可以绘制草稿生成代码
通过使用OpenAI、Gemini技术生成高可用代码,支持 web(React,Vue,Tailwind CSS),native(react native)等代码,使用GPT-4 Vision生成,通过截图、绘制草稿、输入创意生成代码

web 支持(React,Vue,Tailwind CSS)
https://github.com/sparrow-js/ant-codeAI/assets/59440091/e53fae82-d797-4a52-a1a7-a327bc3917a4

https://github.com/sparrow-js/ant-codeAI/assets/59440091/b66c80fa-b121-442e-b482-f4d3a0cd2d88
编辑支持(HTML + Tailwind,react + Tailwind)
<img width="1206" alt="Editing support (HTML+Tailwind, react+Tailwind)" src="https://github.com/sparrow-js/ant-codeAI/assets/59440091/9e1be3c2-5fff-40e9-bba0-ddbdad68a586">

app 支持(react native)

https://github.com/sparrow-js/ant-codeAI/assets/59440091/1f60f5a6-3bbd-4cca-8a9a-7e9a211de8ff


## 🚀 试用
> [线上地址](https://www.ancodeai.com/)

> [线上临时腾讯云地址,图片最大可上传1MB](https://service-1fiqz1da-1253530766.gz.tencentapigw.com/release/)


可以下载下来本地运行.
```bash
npm run dev
```

## 🛠 设置
<img width="558" alt="Pasted Graphic 1" src="https://github.com/sparrow-js/firefly/assets/59440091/2daf0da1-dc53-4c2a-b450-2667abcf940b">
支持OpenAI、Gemini(免费),Gemini输出的效果不好

<img width="563" alt="setting" src="https://github.com/sparrow-js/ant-codeAI/assets/59440091/7f464a2c-edef-4b00-8cbe-fe46cfabf19e">

OpenAI:
- OpenAI API Key
- OpenAI Base URL(代理地址,默认:https://api.openai.com/v1)
- Mock AI Response(mock AI返回的数据,不直接请求AI),直接请求OpenAI 接口会消耗费用

Gemini(免费):
- Gemini API key


## 生成对比
| 原图 | 生成网页 |
Expand All @@ -37,7 +40,6 @@ npm run dev
| <img width="1091" alt="截屏2023-12-17 下午1 38 21" src="https://github.com/sparrow-js/ant-codeAI/assets/59440091/e973ba23-3dc8-484f-9aed-793271a286e8"> | <img width="1055" alt="截屏2023-12-17 下午1 38 48" src="https://github.com/sparrow-js/ant-codeAI/assets/59440091/414fd1fd-6288-4e20-9f7e-9d279ab3808c"> |



## 🙋‍♂️ 合作
- 如果有合作意向欢迎加wx:sparrow777-js,不闲聊,没有具体事情请不要加🙏。
- bug,意见等直接提交到git上即可
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# ant-codeAI
English · [中文](./README-zh_CN.md)

By using AI technology to generate highly available code, web (React, Vue, Tailwind CSS), native (react native) and other codes, GPT-4 Vision is used to generate it. By converting screenshots into code, you can customize prompts to generate controllable code. The whiteboard function can generate code based on different drafts.
By using OpenAI and Gemini technologies to generate highly available code, it supports web (React, Vue, Tailwind CSS), native (react native) and other codes. It is generated using GPT-4 Vision. Code is generated by taking screenshots, drawing drafts, and inputting ideas.

web support(React,Vue,Tailwind CSS)
https://github.com/sparrow-js/ant-codeAI/assets/59440091/e53fae82-d797-4a52-a1a7-a327bc3917a4

https://github.com/sparrow-js/ant-codeAI/assets/59440091/b66c80fa-b121-442e-b482-f4d3a0cd2d88

app support(react native)

https://github.com/sparrow-js/ant-codeAI/assets/59440091/1f60f5a6-3bbd-4cca-8a9a-7e9a211de8ff
Editing support (HTML+Tailwind, react+Tailwind)
<img width="1206" alt="Editing support (HTML+Tailwind, react+Tailwind)" src="https://github.com/sparrow-js/ant-codeAI/assets/59440091/9e1be3c2-5fff-40e9-bba0-ddbdad68a586">


## 🚀 Try It Out!
Expand All @@ -21,12 +18,19 @@ You can download it and run it locally.
npm run dev
```
## 🛠 Setting
<img width="558" alt="Pasted Graphic 1" src="https://github.com/sparrow-js/firefly/assets/59440091/2daf0da1-dc53-4c2a-b450-2667abcf940b">
Supports OpenAI, Gemini (free), Gemini output is not good

<img width="563" alt="setting" src="https://github.com/sparrow-js/ant-codeAI/assets/59440091/7f464a2c-edef-4b00-8cbe-fe46cfabf19e">

OpenAI:
- OpenAI API Key
- OpenAI Base URL(proxy url, default:https://api.openai.com/v1)
- Mock AI Response(mock AIThe returned data does not directly request AI)

Gemini(free):
- Gemini API key


## Generate
| Original | Generate |
| --- | --- |
Expand Down