Skip to content

Commit

Permalink
fixed config construction in PineconeClient
Browse files Browse the repository at this point in the history
  • Loading branch information
ericapywang committed Jun 14, 2024
1 parent 90e3254 commit e0accd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pinecone_sdk/src/pinecone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ impl PineconeClient {
},
};

let config = Config::new(api_key_str.clone(), None);
let config = Config {
api_key: api_key_str.clone(),
controller_url: controller_host.clone(),
additional_headers: additional_headers.clone(),
source_tag: source_tag.clone(),
};
let user_agent = get_user_agent(&config);

Ok(PineconeClient {
Expand Down

0 comments on commit e0accd4

Please sign in to comment.