aiclient-api 0.1.0

A unified AI gateway daemon exposing OpenAI-compatible and Anthropic-compatible API endpoints, backed by GitHub Copilot and Kiro (AWS CodeWhisperer)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Result;

pub async fn run(
    host: String,
    port: u16,
    foreground: bool,
    api_key: Option<String>,
    log_file: Option<String>,
) -> Result<()> {
    let _ = aiclient_api::daemon::stop_daemon();
    tokio::time::sleep(std::time::Duration::from_millis(500)).await;
    super::start::run(host, port, foreground, api_key, log_file).await
}