MCPcopy Create free account
hub / github.com/ddddddeon/a / prompt_without_api_key

Function prompt_without_api_key

tests/integration.rs:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40#[test]
41fn prompt_without_api_key() -> Result<(), Box<dyn Error>> {
42 if let Ok(_) = std::env::var("OPENAI_API_KEY") {
43 std::env::remove_var("OPENAI_API_KEY")
44 }
45 match a::prompt("a python script that fetches a url") {
46 Ok(_) => Err("prompt() should return Err() if OPENAI_API_KEY is not set".into()),
47 Err(_) => Ok(()),
48 }
49}

Callers

nothing calls this directly

Calls 1

promptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…