signalk-parquet
Version:
SignalK plugin and webapp that archives SK data to Parquet files with a regimen control system, advanced querying, Claude integrated AI analysis, spatial capabilities, and REST API.
44 lines • 1.67 kB
JavaScript
;
/**
* Claude Model Definitions - Single Source of Truth
* Update this file when Anthropic releases new models
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CLAUDE_MODEL_DESCRIPTIONS = exports.DEFAULT_CLAUDE_MODEL = exports.SUPPORTED_CLAUDE_MODELS = exports.CLAUDE_MODELS = void 0;
exports.isValidClaudeModel = isValidClaudeModel;
exports.getValidClaudeModel = getValidClaudeModel;
exports.CLAUDE_MODELS = {
OPUS_4_1: 'claude-opus-4-1-20250805',
OPUS_4: 'claude-opus-4-20250514',
SONNET_4: 'claude-sonnet-4-20250514',
SONNET_4_5: 'claude-sonnet-4-5-20250929',
};
exports.SUPPORTED_CLAUDE_MODELS = [
exports.CLAUDE_MODELS.OPUS_4_1,
exports.CLAUDE_MODELS.OPUS_4,
exports.CLAUDE_MODELS.SONNET_4,
exports.CLAUDE_MODELS.SONNET_4_5,
];
exports.DEFAULT_CLAUDE_MODEL = exports.CLAUDE_MODELS.SONNET_4_5;
exports.CLAUDE_MODEL_DESCRIPTIONS = {
[exports.CLAUDE_MODELS.OPUS_4_1]: 'Claude Opus 4.1 (Most Capable & Intelligent)',
[exports.CLAUDE_MODELS.OPUS_4]: 'Claude Opus 4 (Previous Flagship)',
[exports.CLAUDE_MODELS.SONNET_4]: 'Claude Sonnet 4 (Balanced Performance)',
[exports.CLAUDE_MODELS.SONNET_4_5]: 'Claude Sonnet 4.5 (Latest Sonnet)',
};
/**
* Check if a model string is a valid supported Claude model
*/
function isValidClaudeModel(model) {
return exports.SUPPORTED_CLAUDE_MODELS.includes(model);
}
/**
* Get a valid Claude model, falling back to default if invalid
*/
function getValidClaudeModel(model) {
if (!model || !isValidClaudeModel(model)) {
return exports.DEFAULT_CLAUDE_MODEL;
}
return model;
}
//# sourceMappingURL=claude-models.js.map