@@ -187,7 +187,7 @@ def print_api_docs():
187187 }}
188188
189189 • Example:
190- curl -X POST "http://localhost:8000 /generate" \\
190+ curl -X POST "<server-ngrok-public-url> /generate" \\
191191 -H "Content-Type: application/json" \\
192192 -d '{{"prompt": "Write a story about a dragon", "max_tokens": 100}}'
193193
@@ -204,35 +204,35 @@ def print_api_docs():
204204 }}
205205
206206 • Example:
207- curl -X POST "http://localhost:8000 /chat" \\
207+ curl -X POST "<server-ngrok-public-url> /chat" \\
208208 -H "Content-Type: application/json" \\
209209 -d '{{"messages": [{{"role": "user", "content": "Hello, who are you?"}}]}}'
210210
211211📦 Model Management Endpoints:
212212
2132131️⃣ /models - List available models
214214 • GET
215- • Example: curl "http://localhost:8000 /models"
215+ • Example: curl "<server-ngrok-public-url> /models"
216216
2172172️⃣ /models/load - Load a specific model
218218 • POST with JSON body: {{ "model_id": "microsoft/phi-2" }}
219219 • Example:
220- curl -X POST "http://localhost:8000 /models/load" \\
220+ curl -X POST "<server-ngrok-public-url> /models/load" \\
221221 -H "Content-Type: application/json" \\
222222 -d '{{"model_id": "microsoft/phi-2"}}'
223223
224224ℹ️ System Endpoints:
225225
2262261️⃣ /system/info - Get system information
227227 • GET
228- • Example: curl "http://localhost:8000 /system/info"
228+ • Example: curl "<server-ngrok-public-url> /system/info"
229229
2302302️⃣ /system/resources - Get detailed system resources
231231 • GET
232- • Example: curl "http://localhost:8000 /system/resources"
232+ • Example: curl "<server-ngrok-public-url> /system/resources"
233233
2342343️⃣ /docs - Interactive API documentation (Swagger UI)
235- • Open in browser: http://localhost:8000 /docs
235+ • Open in browser: <server-ngrok-public-url> /docs
236236
237237{ Fore .CYAN } ════════════════════════════════════════════════════════════════════════{ Style .RESET_ALL }
238238"""
0 commit comments