{"record":{"id":"dcea436b5e001b83","repo":"tinyhumansai/openhuman","slug":"unknown-embedding-provider-unknown-supported","errorCode":null,"errorMessage":"unknown embedding provider: \"{unknown}\". Supported: \"managed\", \"voyage\", \"openai\", \"cohere\", \"ollama\", \"custom:<url>\", \"none\"","messagePattern":"unknown embedding provider: \"(.+?)\"\\. Supported: \"managed\", \"voyage\", \"openai\", \"cohere\", \"ollama\", \"custom:<url>\", \"none\"","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/inference/embeddings/factory.rs","lineNumber":97,"sourceCode":"            \"https://api.openai.com\",\n            \"\",\n            model,\n            dims,\n            true,\n        ))),\n        \"cohere\" => Ok(TinyAgentsEmbeddingProvider::boxed(\n            CohereEmbeddingModel::new(\"\")\n                .with_model(model)\n                .with_dimensions(dims),\n        )),\n        name if name.starts_with(\"custom:\") => {\n            let base_url = name.strip_prefix(\"custom:\").unwrap_or(\"\");\n            Ok(TinyAgentsEmbeddingProvider::boxed(openai_model(\n                base_url, \"\", model, dims, false,\n            )))\n        }\n        \"none\" => Ok(TinyAgentsEmbeddingProvider::boxed(NoopEmbeddingModel)),\n        unknown => Err(anyhow::anyhow!(\n            \"unknown embedding provider: \\\"{unknown}\\\". \\\n             Supported: \\\"managed\\\", \\\"voyage\\\", \\\"openai\\\", \\\"cohere\\\", \\\n             \\\"ollama\\\", \\\"custom:<url>\\\", \\\"none\\\"\"\n        )),\n    }\n}\n\n/// Creates an embedding provider with explicit API key and endpoint.\n///\n/// Used by the RPC layer when credentials are loaded from the credential\n/// store.\npub fn create_embedding_provider_with_credentials(\n    provider: &str,\n    model: &str,\n    dims: usize,\n    api_key: &str,\n    custom_endpoint: Option<&str>,\n) -> anyhow::Result<Box<dyn EmbeddingProvider>> {","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/inference/embeddings/factory.rs#L79-L115","documentation":"The default-parsed embedding provider name matched none of the known kinds (managed/voyage/openai/cohere/ollama/none/custom:<url>) in the API-key-less factory path. A configuration-string validation error: the provider string in config (or its default) is misspelled or of an unsupported form, and the message enumerates the accepted spellings.","triggerScenarios":"Thrown at src/openhuman/inference/embeddings/factory.rs:97 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the embedding provider name to one of the listed supported values","Use the custom:<url> form for an OpenAI-compatible custom endpoint","Set embeddings to \"none\" to disable"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}