File size: 1,247 Bytes
f9411d1
84853d2
 
 
 
f9411d1
84853d2
 
f9411d1
84853d2
f9411d1
84853d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: SmolLM3-3B LangGraph Conductor API
emoji: ⚙️
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: true
---
# SmolLM3-3B API for LangGraph Conductor

This Space hosts a FastAPI backend for the SmolLM3-3B model, providing an OpenAI-compatible API for LangGraph-based Tech→Econ analysis.

## 🚀 Quick Start

```python
import requests

API_URL = "https://gsstec-cond.hf.space"

# Health check
response = requests.get(f"{API_URL}/health")
print(response.json())

# Chat completion
chat_response = requests.post(f"{API_URL}/chat", json={
    "messages": [{"role": "user", "content": "Analyze tech score 0.1172"}],
    "enable_thinking": True
})
print(chat_response.json())
```

## 🔧 API Endpoints

- `GET /health` - Health check
- `POST /chat` - Chat completion (OpenAI compatible)
- `GET /models` - List available models

## 🏗️ Architecture

- **Model**: SmolLM3-3B (3B parameters)
- **Framework**: FastAPI + Transformers
- **Deployment**: Docker on Hugging Face Spaces
- **Purpose**: LangGraph Conductor backend for Tech→Econ analysis

## 📊 Usage in LangGraph

This API serves as the LLM backend for the AEGIS-10 LangGraph conductor, processing technical analysis scores and generating economic insights.