add x.ai support

This commit is contained in:
LUIS NOVO 2024-11-11 16:49:50 -03:00
parent 2e2a4947b3
commit ac2ea9e554
3 changed files with 32 additions and 1 deletions

View file

@ -28,6 +28,7 @@ model_types = [
provider_status["ollama"] = os.environ.get("OLLAMA_API_BASE") is not None
provider_status["openai"] = os.environ.get("OPENAI_API_KEY") is not None
provider_status["xai"] = os.environ.get("XAI_API_KEY") is not None
provider_status["vertexai"] = (
os.environ.get("VERTEX_PROJECT") is not None
and os.environ.get("VERTEX_LOCATION") is not None