Parse markdown into an OpenAI chat completion request

This commit is contained in:
Nathan Sobo 2023-05-19 15:20:58 -06:00
parent 3984cc6d39
commit 912fd23006
7 changed files with 357 additions and 0 deletions

21
crates/ai/Cargo.toml Normal file
View file

@ -0,0 +1,21 @@
[package]
name = "ai"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
path = "src/ai.rs"
doctest = false
[dependencies]
editor = { path = "../editor" }
gpui = { path = "../gpui" }
anyhow.workspace = true
async-openai = "0.10.3"
pulldown-cmark = "0.9.2"
unindent.workspace = true
[dev-dependencies]
editor = { path = "../editor", features = ["test-support"] }