This file contains hidden or 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
| { | |
| "MONARCHS_NITOPIA": [ | |
| { | |
| "name": "King Loo XII", | |
| "birth": 1748, | |
| "death": 1815, | |
| "cause_of_death": "Stroke", | |
| "reign_start": 1800, | |
| "reign_end": 1815, | |
| "notes": "Ruler of Nitopia when Bertram Woolcrest was born in 1801. Expanded fog levies." |
This file contains hidden or 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
| export async function findExistingDbUserFromPrivyUser(privyUser: PrivyInternalUser) { | |
| const log = getUtilityLogger(); | |
| // First, check if a Privy account already exists | |
| const account = await db.account.findUnique({ | |
| where: { | |
| provider_providerAccountId: { | |
| provider: "privy", | |
| providerAccountId: privyUser.id, |
This file contains hidden or 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
| 'use client'; | |
| import { useEffect, useRef } from 'react'; | |
| import { getAccessToken } from '@privy-io/react-auth'; | |
| export function usePrivyBackgroundRefresh() { | |
| const timer = useRef<number | null>(null); | |
| const backoffMs = useRef(0); // grows on error, resets on success | |
| useEffect(() => { | |
| let cancelled = false; |
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "vuyp:414158939555364865", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 20191, | |
| "sum_output_tokens": 7067, | |
| "calls": 20 |
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "vuyp:414158939555364865", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 24437, | |
| "sum_output_tokens": 10240, | |
| "calls": 20 |
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "vuyp:414158939555364865", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 151335, | |
| "sum_output_tokens": 19773, | |
| "calls": 36 |
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "oms2213:721268260649304134", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 36907, | |
| "sum_output_tokens": 5439, | |
| "calls": 15 |
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "spiketickett:185202457066864640", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 2914, | |
| "sum_output_tokens": 2249, | |
| "calls": 2 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "oms2213:721268260649304134", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 60385, | |
| "sum_output_tokens": 8330, | |
| "calls": 12 |
This file contains hidden or 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
| { | |
| "metadata": { | |
| "owner": "zpankz:320489549803552769", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 14127, | |
| "sum_output_tokens": 4751, | |
| "calls": 9 |
NewerOlder