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
<?php | |
/** | |
* Aggregates values as a JSON array | |
* @param array $columns | |
* @return string | |
*/ | |
function json_object(array $columns): string | |
{ | |
reset($columns); |
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
#!/bin/bash | |
function is_synced() { | |
output=`mutagen list` | |
if (echo ${output} | grep -q "Watching for changes"); then | |
echo 'yes' | |
else | |
echo 'no' | |
fi |
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
const requestPrice = 0.003; | |
const responsePrice = 0.004; | |
const initialPromptSizeInTokens = 500; | |
const averageRequestTokens = 40; | |
const averageResponseTokens = 100; | |
const conversationTimeInMinutes = 15; | |
const messagesPerMinute = 2; |