Package src/vendors/cohere (molo::cohere): Chat v2 with streaming, tools, thinking and citations; embed, rerank, classify, tokenize, detokenize, parse, transcription; datasets, embed jobs, batches, connectors, fine-tuning, models, check-api-key; legacy v1 chat/generate/summarize; CohereChatModel : ChatModel. All 42 operations of cohere-openapi.yaml are in one call table, verified by tools/check_spec.py. Demo routes under /ai/cohere, 51 unit tests and 2 route tests; live tests are opt-in. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
32 lines
880 B
C++
32 lines
880 B
C++
#pragma once
|
|
|
|
// Model names the docs page https://docs.cohere.com/docs/models lists (read
|
|
// 2026-10-25). The live GET /v1/models list is the truth; this table only
|
|
// explains names and gives the defaults the module uses.
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
|
|
namespace molo::cohere {
|
|
|
|
enum class ModelKind { kChat, kEmbed, kRerank };
|
|
enum class ModelStatus { kLive, kDeprecated, kUnknown };
|
|
|
|
struct ModelName {
|
|
const char* id;
|
|
ModelKind kind;
|
|
ModelStatus status;
|
|
const char* note;
|
|
};
|
|
|
|
struct ModelCatalog {
|
|
static std::size_t count();
|
|
static const ModelName& at(std::size_t index);
|
|
static ModelStatus status_of(const std::string& id);
|
|
static const char* default_chat() { return "command-a-03-2025"; }
|
|
static const char* default_embed() { return "embed-v4.0"; }
|
|
static const char* default_rerank() { return "rerank-v3.5"; }
|
|
};
|
|
|
|
} // namespace molo::cohere
|