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

Method xai

core/src/llm/providers.rs:406–412  ·  view source on GitHub ↗

Create `xAI` configuration for Grok models

(api_key: impl Into<String>, model: impl Into<String>)

Source from the content-addressed store, hash-verified

404
405 /// Create `xAI` configuration for Grok models
406 pub fn xai(api_key: impl Into<String>, model: impl Into<String>) -> Self {
407 Self::Xai {
408 api_key: api_key.into(),
409 model: model.into(),
410 base_url: None,
411 }
412 }
413
414 /// Create `AI21` configuration
415 pub fn ai21(api_key: impl Into<String>, model: impl Into<String>) -> Self {

Callers 2

test_xai.pyFile · 0.45
xai_configMethod · 0.45

Calls

no outgoing calls

Tested by 1

xai_configMethod · 0.36