Docs.rs
shell-gpt-0.1.1
shell-gpt 0.1.1
Permalink
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
rigwild
Dependencies
anyhow ^1.0.70
normal
directories ^5.0.0
normal
orion ^0.17.4
normal
rand ^0.8.5
normal
regex ^1.7.3
normal
reqwest ^0.11
normal
serde ^1.0
normal
spinoff ^0.7.0
normal
thiserror ^1.0
normal
users ^0.11.0
normal
Versions
14.71%
of the crate is documented
Platform
x86_64-apple-darwin
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Module openai
shell_
gpt
0.1.1
Module openai
Module Items
Enums
Functions
In crate shell_
gpt
shell_gpt
Module
openai
Copy item path
Source
Enums
§
Message
PrePrompt
Functions
§
ask_
chatgpt
extract_
code_
block_
if_
needed
Even with a pre-prompt indicating to not use code blocks and not give explanations, the model can output some. Extract it, if no code block found, just return the input string.