x-ai 0.1.0

✨ A cli, tui, and sdk for interacting with the 𝕏-AI API
Documentation
// Copyright 2026 Mahmoud Harmouch.
//
// Licensed under the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc = include_str!("../README.md")]

pub mod api_key;
pub mod chat_compl;
pub mod client;
pub mod completions;
pub mod deferred_compl;
pub mod embedding;
pub mod embedding_get;
pub mod embedding_mod;
pub mod error;
pub mod get_mod;
pub mod lang_mod;
pub mod list_lang_mod;
pub mod list_mod;
pub mod responses;
pub mod traits;

#[cfg(feature = "cli")]
pub mod cli;
#[cfg(feature = "cli")]
pub mod tui;

pub const XAI_V1_URL: &str = "https://api.x.ai/v1";
// Copyright 2026 Mahmoud Harmouch.
//
// Licensed under the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.