MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / model_name

Method model_name

core/src/llm/providers.rs:499–527  ·  view source on GitHub ↗

Get the model name

(&self)

Source from the content-addressed store, hash-verified

497
498 /// Get the model name
499 pub fn model_name(&self) -> &str {
500 match self {
501 Self::OpenAI { model, .. } => model,
502 Self::Anthropic { model, .. } => model,
503 Self::AzureLlm {
504 deployment_name, ..
505 } => deployment_name,
506 Self::ByteDance { model, .. } => model,
507 Self::DeepSeek { model, .. } => model,
508 Self::HuggingFace { model, .. } => model,
509 Self::Ollama { model, .. } => model,
510 Self::Perplexity { model, .. } => model,
511 Self::OpenRouter { model, .. } => model,
512 Self::Fireworks { model, .. } => model,
513 Self::Replicate { model, .. } => model,
514 Self::TogetherAi { model, .. } => model,
515 Self::Xai { model, .. } => model,
516 Self::Ai21 { model, .. } => model,
517 Self::MistralAI { model, .. } => model,
518 Self::Gemini { model, .. } => model,
519 #[cfg(feature = "python")]
520 Self::PythonBridge { model, .. } => model,
521 Self::Custom { config, .. } => config
522 .get("model")
523 .and_then(|v| v.as_str())
524 .unwrap_or("unknown"),
525 Self::Unconfigured { .. } => "none",
526 }
527 }
528
529 /// A stable fingerprint used to dedupe LLM config validation across a workflow.
530 ///

Callers 5

modelMethod · 0.45
execute_internalMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected