MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / getLanguageModelKey

Function getLanguageModelKey

packages/web/src/features/chat/utils.ts:427–429  ·  view source on GitHub ↗
(model: LanguageModelInfo)

Source from the content-addressed store, hash-verified

425 * Generates a unique key given a LanguageModelInfo object.
426 */
427export const getLanguageModelKey = (model: LanguageModelInfo) => {
428 return `${model.provider}-${model.model}-${model.displayName}`;
429}
430
431/**
432 * Given a file reference and a list of file sources, attempts to resolve the file source that the reference points to.

Callers 4

LanguageModelProviderFunction · 0.90
LanguageModelSelectorFunction · 0.90
route.tsFile · 0.90
askCodebaseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected