Skip to content

Commit 182a445

Browse files
embedding api key
1 parent f99744d commit 182a445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ impl Service {
485485
}) => {
486486
let task_id = Service::generate_task();
487487
let headers = req.headers();
488-
let openai_key = headers.get("TERMINUSDB_VECTOR_API_KEY");
488+
let openai_key = headers.get("VECTORLINK_EMBEDDING_API_KEY");
489489
match openai_key {
490490
Some(openai_key) => {
491491
let openai_key = String::from_utf8(openai_key.as_bytes().to_vec()).unwrap();
@@ -508,7 +508,7 @@ impl Service {
508508
None => Ok(Response::builder()
509509
.status(400)
510510
.body(
511-
"No API key supplied in header (TERMINUSDB_VECTOR_API_KEY)"
511+
"No API key supplied in header (VECTORLINK_EMBEDDING_API_KEY)"
512512
.to_string()
513513
.into(),
514514
)

0 commit comments

Comments
 (0)