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
import os | |
import openai | |
prompt = "I'm a busy CEO, please summarize the following in 10-20 bullet points. Include only the most important, useful or interesting information.\n\n" | |
# model = 'gpt-3.5-turbo' # 'gpt-4' # moved to gpt_chat_completion since we use both | |
CONTEXT_SIZE = 4096 # 2048 for GPT-3 (as half the input. | |
# CONTEXT_SIZE = 1024 # tiny context for testing | |
MAX_TOKENS_IN = int(CONTEXT_SIZE*2/3) | |
MAX_TOKENS_OUT = CONTEXT_SIZE - MAX_TOKENS_IN |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>APNs</key> | |
<array> | |
<dict> |