tensorchord / pgvecto.rs

Scalable, Low-latency and Hybrid-enabled Vector Search in Postgres. Revolutionize Vector Search, not Database.
https://docs.pgvecto.rs/getting-started/overview.html
Apache License 2.0
1.53k stars 60 forks source link

fix: fix openai option gucs setting. #469

Closed my-vegetable-has-exploded closed 2 months ago

my-vegetable-has-exploded commented 2 months ago

I think those code don't matchs.

let base_url = guc_string_parse(&OPENAI_BASE_URL, "vectors.openai_base");

and

    GucRegistry::define_string_guc(
        "vectors.openai_base_url",
        "The base url of OpenAI or compatible server.",
        "",
        &OPENAI_BASE_URL,
        GucContext::Userset,
        GucFlags::default(),
    );
cutecutecat commented 2 months ago

Thanks for your fix. It's my fault without carefully check.