We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd03407 commit 9b7e64fCopy full SHA for 9b7e64f
aiscript-vm/src/ai/mod.rs
@@ -60,6 +60,9 @@ pub struct ModelConfig {
60
impl Default for ModelConfig {
61
fn default() -> Self {
62
ModelConfig {
63
+ #[cfg(feature = "ai_test")]
64
+ api_key: "".into(),
65
+ #[cfg(not(feature = "ai_test"))]
66
api_key: env::var("OPENAI_API_KEY")
67
.expect("Expect `OPENAI_API_KEY` environment variable."),
68
api_endpoint: Some(OPENAI_API_ENDPOINT.to_string()),
0 commit comments