uv run --with pillow --with google-genai python -c '
import os
from google import genai
from google.genai import types
from io import BytesIO
from PIL import Image
GEMINI_API_KEY = os.environ["GEMINI_API_KEY"]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.10" | |
# dependencies = [ | |
# "click", | |
# "kokoro", | |
# "misaki[en]", | |
# "soundfile", | |
# ] | |
# /// | |
import click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "pyobjc-core", | |
# "pyobjc-framework-CoreLocation", | |
# "click" | |
# ] | |
# /// | |
"""Basic geocoding using CoreLocation on macOS.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# dependencies = [ | |
# "pyobjc-core", | |
# "pyobjc-framework-CoreLocation" | |
# ] | |
# /// | |
"""Get named timezone for a location on macOS using CoreLocation | |
To use this script, you need to have pyobjc-core and pyobjc-framework-CoreLocation installed: |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chatcmpl-AkvTd3qWivjaB4rHJUSMAu7UJRTsM", | |
"object": "chat.completion", | |
"created": 1735747393, | |
"model": "gpt-4o-audio-preview-2024-12-17", | |
"choices": [ | |
{ | |
"index": 0, | |
"message": { |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chatcmpl-Afdl8zH5y8xDqqdZi7UiPyYZfkP58", | |
"object": "chat.completion", | |
"created": 1734487646, | |
"model": "gpt-4o-audio-preview-2024-12-17", | |
"choices": [ | |
{ | |
"index": 0, | |
"message": { |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chatcmpl-AfdkL95RjVZiUuJIUWdS0CCi7iM0S", | |
"object": "chat.completion", | |
"created": 1734487597, | |
"model": "gpt-4o-mini-audio-preview-2024-12-17", | |
"choices": [ | |
{ | |
"index": 0, | |
"message": { |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chatcmpl-AfZjInFYyuKnJGB7UeC613oqPJFyF", | |
"object": "chat.completion", | |
"created": 1734472156, | |
"model": "gpt-4o-audio-preview-2024-12-17", | |
"choices": [ | |
{ | |
"index": 0, | |
"message": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chatcmpl-AYkFZgbbiEHMbPep0zSJqZgKy98tb", | |
"object": "chat.completion", | |
"created": 1732844301, | |
"model": "gpt-4o-audio-preview-2024-10-01", | |
"choices": [ | |
{ | |
"index": 0, | |
"message": { | |
"role": "assistant", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chatcmpl-AYcVyamO3LWB0bHxdEce5LIQFxiyr", | |
"object": "chat.completion", | |
"created": 1732814566, | |
"model": "gpt-4o-audio-preview-2024-10-01", | |
"choices": [ | |
{ | |
"index": 0, | |
"message": { | |
"role": "assistant", |
NewerOlder