Skip to content

Instantly share code, notes, and snippets.

View simonw's full-sized avatar

Simon Willison simonw

View GitHub Profile
@simonw
simonw / response.json
Created December 18, 2024 02:07
GPT-4o audio response
This file has been truncated, but you can view the full file.
{
"id": "chatcmpl-Afdl8zH5y8xDqqdZi7UiPyYZfkP58",
"object": "chat.completion",
"created": 1734487646,
"model": "gpt-4o-audio-preview-2024-12-17",
"choices": [
{
"index": 0,
"message": {
@simonw
simonw / response.json
Created December 18, 2024 02:07
GPT-4o audio response
This file has been truncated, but you can view the full file.
{
"id": "chatcmpl-AfdkL95RjVZiUuJIUWdS0CCi7iM0S",
"object": "chat.completion",
"created": 1734487597,
"model": "gpt-4o-mini-audio-preview-2024-12-17",
"choices": [
{
"index": 0,
"message": {
@simonw
simonw / response.json
Created December 17, 2024 21:49
GPT-4o audio response
This file has been truncated, but you can view the full file.
{
"id": "chatcmpl-AfZjInFYyuKnJGB7UeC613oqPJFyF",
"object": "chat.completion",
"created": 1734472156,
"model": "gpt-4o-audio-preview-2024-12-17",
"choices": [
{
"index": 0,
"message": {
@simonw
simonw / response.json
Created November 29, 2024 01:38
GPT-4o audio response
{
"id": "chatcmpl-AYkFZgbbiEHMbPep0zSJqZgKy98tb",
"object": "chat.completion",
"created": 1732844301,
"model": "gpt-4o-audio-preview-2024-10-01",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
@simonw
simonw / response.json
Created November 28, 2024 17:26
GPT-4o audio response
{
"id": "chatcmpl-AYcVyamO3LWB0bHxdEce5LIQFxiyr",
"object": "chat.completion",
"created": 1732814566,
"model": "gpt-4o-audio-preview-2024-10-01",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
@simonw
simonw / response.json
Created November 28, 2024 17:21
GPT-4o audio response
{
"id": "chatcmpl-AYcUExCrHXAgXBMCwrAZMgEzCo3FI",
"object": "chat.completion",
"created": 1732814458,
"model": "gpt-4o-audio-preview-2024-10-01",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
@simonw
simonw / response.json
Created November 28, 2024 17:16
GPT-4o audio response
{
"id": "chatcmpl-AYcOayqBxD4u71IOw9suremupLmnB",
"object": "chat.completion",
"created": 1732814108,
"model": "gpt-4o-audio-preview-2024-10-01",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
# /// script
# dependencies = [
# "atproto"
# ]
# ///
from atproto import Client
import getpass
import time
@simonw
simonw / mlx_whisper_realtime.py
Last active December 11, 2024 13:32 — forked from ivanfioravanti/mlx_whisper_realtime.py
mlx-whisper real time audio
# /// script
# dependencies = [
# "SpeechRecognition",
# "mlx-whisper",
# "pyaudio",
# ]
# ///
import speech_recognition as sr
import numpy as np
/**
* Creates a private GitHub Gist
* @param {string} description - Gist description
* @param {Object.<string, string>} files - Object with filenames as keys and content as values
* @param {string} token - GitHub Personal Access Token with gist scope
* @returns {Promise<Object>} - GitHub Gist API response object
* @throws {Error} - If the API request fails
*/
async function createPrivateGist(description, files, token) {
if (!token) {