MCPcopy Index your code
hub / github.com/simstudioai/sim / getConfiguredEmbeddingModel

Function getConfiguredEmbeddingModel

apps/sim/lib/knowledge/embeddings.ts:187–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 * unset or set to an unsupported model.
186 */
187export function getConfiguredEmbeddingModel(): string {
188 const configured = env.KB_EMBEDDING_MODEL
189 if (configured && SUPPORTED_EMBEDDING_MODELS[configured]) {
190 return configured
191 }
192 if (configured) {
193 logger.warn(
194 `KB_EMBEDDING_MODEL="${configured}" is not a supported embedding model — falling back to ${DEFAULT_EMBEDDING_MODEL}`
195 )
196 }
197 return DEFAULT_EMBEDDING_MODEL
198}
199
200async function resolveProvider(
201 embeddingModel: string,

Callers 4

executeFunction · 0.90
chunkMdxFileMethod · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

warnMethod · 0.65

Tested by

no test coverage detected