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:
@@ -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
|
||||
Reference in New Issue
Block a user