chatGL
所属分类:GPT/ChatGPT
开发工具:TypeScript
文件大小:35KB
下载次数:0
上传日期:2023-04-21 23:59:20
上 传 者:
sh-1993
说明: 使用GPT-3的GLSL着色器生成器
(GLSL shader generator using GPT-3 ?
,)
文件列表:
LICENSE (1062, 2023-04-26)
index.html (8076, 2023-04-26)
index.js (3918, 2023-04-26)
package-lock.json (86637, 2023-04-26)
package.json (557, 2023-04-26)
src (0, 2023-04-26)
src\animation.ts (1108, 2023-04-26)
src\index.ts (10827, 2023-04-26)
src\render.ts (4997, 2023-04-26)
src\styles.css (6975, 2023-04-26)
tsconfig.json (607, 2023-04-26)
# chatGL
GLSL fragment shader generator using `gpt-3.5-turbo` wrapped in a fast Vanilla Typescript + Vite frontend.
> NOTE: The prompts are meant to produce interesting pseudo-random generative art using fragment shaders, not to build anything precise. You're just as well off using a totally random prompt as you are a guided one.
## Quick Start
1. Generate an openAI API key - https://platform.openai.com/account/api-keys
2. Create an `.env` file and put your key in `OPENAI_API_KEY`
3. Run `npm run build` to build the frontend and `npm start` to start the server
4. Visit http://localhost:6006
\- or -
1. Visit https://chatgl.ai
![Apr-21-2023 19-54-07 (1)](https://user-images.githubusercontent.com/***439681/233750420-b63738db-67a3-47c3-b727-b9a923841a26.gif)
## Acknowledgements
* [Harley Turan](https://twitter.com/hturan/status/1638230938080485376) using GPT-4 for MIDI-controllable shaders
* [Jordan Scales](https://github.com/jdan/deepdive) using the [EventSource browser API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) to stream AI response
* [Ben Follington](https://github.com/bfollington/) for inspiring the user interface
---
### License
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/benjitrosch/chatGL/blob/main/LICENSE) file for details.
近期下载者:
相关文件:
收藏者: