feat(clients): xai platform: voice, files, collections, management API, key info

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 08:05:20 +02:00
co-authored by Claude Sonnet 5.5
parent 2e0270c043
commit 85015b1c33
57 changed files with 6925 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
#include "xai/platform/clients.h"
namespace molo::xai::platform {
llm::ApiClientConfig PlatformClients::api_config() {
llm::ApiClientConfig c;
c.vendor = "xai";
c.base_url = PlatformEndpoints::kApiBase;
c.key_env = PlatformEndpoints::kApiKeyEnv;
c.auth = llm::AuthStyle::kBearer;
return c;
}
llm::ApiClientConfig PlatformClients::management_config() {
llm::ApiClientConfig c;
c.vendor = "xai";
c.base_url = PlatformEndpoints::kManagementBase;
c.key_env = PlatformEndpoints::kManagementKeyEnv;
c.auth = llm::AuthStyle::kBearer;
return c;
}
PlatformClients PlatformClients::from_env() {
return PlatformClients(llm::ApiClient::from_env(api_config()),
llm::ApiClient::from_env(management_config()));
}
} // namespace molo::xai::platform