diff --git a/src/gucs/embedding.rs b/src/gucs/embedding.rs
index 895425596..bdb600f38 100644
--- a/src/gucs/embedding.rs
+++ b/src/gucs/embedding.rs
@@ -1,11 +1,23 @@
-use super::guc_string_parse;
use embedding::OpenAIOptions;
use pgrx::guc::{GucContext, GucFlags, GucRegistry, GucSetting};
use std::ffi::CStr;
pub fn openai_options() -> OpenAIOptions {
- let base_url = guc_string_parse(&OPENAI_BASE_URL, "vectors.openai_base_url");
- let api_key = guc_string_parse(&OPENAI_API_KEY, "vectors.openai_api_key");
+ use crate::error::*;
+ use pgrx::guc::GucSetting;
+ use std::ffi::CStr;
+ fn parse(target: &'static GucSetting