Skip to content

Instantly share code, notes, and snippets.

View antoniancu's full-sized avatar

Anton Iancu antoniancu

View GitHub Profile
@antoniancu
antoniancu / gist:288ad5b2960eeb0ad741731c2886482d
Created September 30, 2025 15:57
Minimal reproduction that proves this is server-side from Letta. No custom code, no LiveKit, just the OpenAI SDK:
#!/usr/bin/env python3
"""
Minimal test that reproduces the Letta Voice API bug.
Run: pip install openai && python test.py
"""
import asyncio
from openai import AsyncOpenAI
async def test():
client = AsyncOpenAI(
<?php
class BasicPHPValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args_rh = array(
'posts_per_page'=>2,
'order_by' => 'DESC',
'post_type' => 'research',
'paged'=>$paged);
$posts = new WP_Query( $args_rh );
<?php
//Locate the attachment post's ID in the database based on the GUID.
function getIDfromGUID( $guid ){
global $wpdb;
return $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=attachment AND guid=%s", $guid ) );
}
<?php
//Locate the attachment post's ID in the database based on the GUID.
function getIDfromGUID( $guid ){
global $wpdb;
return $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=attachment AND guid=%s", $guid ) );
}
<?php
//Locate the attachment post's ID in the database based on the GUID.
function getIDfromGUID( $guid ){
global $wpdb;
return $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=attachment AND guid=%s", $guid ) );
}
<?php
//Locate the attachment post's ID in the database based on the GUID.
function getIDfromGUID( $guid ){
global $wpdb;
return $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=attachment AND guid=%s", $guid ) );
}