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
|