Skip to content

Commit d2027eb

Browse files
committed
Updated style [skip ci]
1 parent f9127d4 commit d2027eb

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

examples/cohere/example.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
using json = nlohmann::json;
1313

1414
// https://docs.cohere.com/reference/embed
15-
std::vector<std::string> embed(const std::vector<std::string>& texts, const std::string& input_type, char* api_key) {
15+
std::vector<std::string> embed(
16+
const std::vector<std::string>& texts,
17+
const std::string& input_type,
18+
char* api_key
19+
) {
1620
std::string url{"https://api.cohere.com/v2/embed"};
1721
json data{
1822
{"texts", texts},

examples/hybrid/example.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
using json = nlohmann::json;
1515

16-
std::vector<std::vector<float>> embed(const std::vector<std::string>& texts, const std::string& taskType) {
16+
std::vector<std::vector<float>> embed(
17+
const std::vector<std::string>& texts,
18+
const std::string& taskType
19+
) {
1720
// nomic-embed-text-v1.5 uses a task prefix
1821
// https://huggingface.co/nomic-ai/nomic-embed-text-v1.5
1922
std::vector<std::string> input;

examples/rdkit/example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include <vector>
55

66
#include <DataStructs/ExplicitBitVect.h>
7-
#include <GraphMol/SmilesParse/SmilesParse.h>
87
#include <GraphMol/Fingerprints/MorganFingerprints.h>
8+
#include <GraphMol/SmilesParse/SmilesParse.h>
99
#include <pgvector/pqxx.hpp>
1010
#include <pqxx/pqxx>
1111

0 commit comments

Comments
 (0)