MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _is_placeholder_hf_token

Function _is_placeholder_hf_token

skills/embedding/scripts/embed.py:125–133  ·  view source on GitHub ↗
(api_key: Optional[str])

Source from the content-addressed store, hash-verified

123
124
125def _get_openai_embedding_model(provider_hint: Optional[str] = None) -> str:
126 if _should_prefer_dashscope_credentials(provider_hint):
127 return (
128 _get_first_env_value("PAPERFLOW_EMBED_MODEL", "DASHSCOPE_EMBEDDING_MODEL", "EMBEDDING_MODEL")
129 or "text-embedding-3-small"
130 )
131 return _get_first_env_value("PAPERFLOW_EMBED_MODEL", "EMBEDDING_MODEL", "DASHSCOPE_EMBEDDING_MODEL") or "text-embedding-3-small"
132
133
134def _is_placeholder_hf_token(api_key: Optional[str]) -> bool:
135 normalized = str(api_key or "").strip().lower()
136 if not normalized:

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected