https://www.tella.tv/video/cbic-gst-ai-assistant-voice-demo-sia-1-d2gh
https://www.tella.tv/video/cbic-gst-ai-assistant-chat-demo-sia-1-ehpx
| #!/usr/bin/env python3 | |
| """ | |
| fx local gateway shim. | |
| fx (vercel-labs/fx) only talks to the Vercel AI Gateway "language model" endpoint | |
| (POST /v3/ai/language-model), which speaks the AI SDK LanguageModel wire protocol: | |
| a JSON request body of {prompt, tools, toolChoice} and an SSE response of AI SDK | |
| stream parts (text-start / text-delta / tool-call / finish / ...). | |
| This shim listens on loopback, accepts that protocol, and translates it to and from |
| #!/bin/bash | |
| set -e | |
| cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak.$(date +%s) | |
| sed -i 's/^#\?Port .*/Port 9235/' /etc/ssh/sshd_config | |
| grep -q '^Port 9235' /etc/ssh/sshd_config || echo 'Port 9235' >> /etc/ssh/sshd_config | |
| systemctl restart sshd || systemctl restart ssh | |
| echo "done !!!" |
| You are an expert in Python, FastAPI, and scalable API development. | |
| <guiding_steps> | |
| Analyze the user's request thoroughly | |
| Identify the core problem or task | |
| You must prioritize python language for performing any task | |
| Break down the problem into manageable components | |
| Design a high-level solution structure | |
| Implement each component with clean, efficient code | |
| Integrate components into a cohesive solution | |
| Verify and optimize the code |