An experiment using crewai.
- Setup a virtual environment using
virtualenvvirtualenv -p python3 venv
| /** https://docs.autohost.ai/api#operation/reservations-payment-event **/ | |
| /** | |
| * Map 3DS status from Adyen to our format | |
| * @param additionalData Additional data from Adyen notification | |
| * @returns Mapped 3DS status | |
| */ | |
| function map3DSStatus(additionalData: Record<string, any>): string | undefined { | |
| // Check 3DS2 status first (preferred) | |
| const threeDSVersion = additionalData.threeDSVersion; |
| /** https://docs.autohost.ai/api#operation/reservations-payment-event **/ | |
| /** | |
| * Get the event type and status from a Stripe event | |
| * @param {any} event - The Stripe event | |
| * @returns {{event_type: string, event_status: string}} - The event type and status | |
| */ | |
| const stripeEventType = ( | |
| event: any | |
| ): { event_type: string; event_status: string } => { |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: CloudFormation template for Flagsmith Platform | |
| Parameters: | |
| ApexDomain: | |
| Description: The domain name for the Flagsmith Platform (e.g., "example.com") | |
| Type: String | |
| Default: example.com | |
| StageName: | |
| Description: The environment for the Flagsmith Platform (e.g., "prod") |
| """ | |
| Originally posted on: | |
| https://royfirestein.com/blog/real-time-voice-chat-with-ai | |
| """ | |
| import os | |
| import wave | |
| from pydub import AudioSegment | |
| from groq import Groq |
| const csv = require('@fast-csv/parse'); | |
| const https = require('https'); | |
| // Autohost API client | |
| const client = (path, data, method = 'GET') => { | |
| return new Promise((resolve, reject) => { | |
| const options = { | |
| method, | |
| hostname: 'data.autohost.ai', | |
| port: 443, |
| const got = require('got'); | |
| exports.handler = function(context, event, callback) { | |
| const requestBody = { | |
| to: context.TO_EMAIL_ADDRESS, | |
| from: context.FROM_EMAIL_ADDRESS, | |
| subject: `New SMS message from: ${event.From}`, | |
| text: event.Body, | |
| }; | |
| #!/bin/bash | |
| # | |
| # Cleanup Docker | |
| # | |
| if [ ! $(command -v docker) ]; then | |
| echo "Docker is not installed." | |
| exit 1 | |
| fi |
| { | |
| "seccomp-profile": "/etc/docker/seccomp.json" | |
| } |
| const request = require('request-promise'); | |
| // change these values | |
| const USER = 'username'; | |
| const PASS = 'password'; | |
| const API = 'https://api.cymon.io/v2'; | |
| async function login() { | |
| try { | |
| const res = await request.post({ |