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

Method openai

core/src/llm/providers.rs:240–247  ·  view source on GitHub ↗

Create `OpenAI` configuration

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

Source from the content-addressed store, hash-verified

238impl LlmConfig {
239 /// Create `OpenAI` configuration
240 pub fn openai(api_key: impl Into<String>, model: impl Into<String>) -> Self {
241 Self::OpenAI {
242 api_key: api_key.into(),
243 model: model.into(),
244 base_url: None,
245 organization: None,
246 }
247 }
248
249 /// Create `Anthropic` configuration
250 pub fn anthropic(api_key: impl Into<String>, model: impl Into<String>) -> Self {

Calls

no outgoing calls