Copy the default template of openssl.cnf
to a writable location.
cp /usr/lib/ssl/openssl.cnf .
Uncomment the req_extensions = v3_req
req_extensions = v3_req # The extensions to add to a certificate request
Add subjectAltName
to v3_req section
import openai | |
# Set up your OpenAI API credentials | |
openai.api_key = '<apikey>' | |
# Function to chunk text into parts of `max_tokens` tokens | |
def chunk_text(text, max_tokens): | |
tokens = text.split() | |
chunks = [] | |
current_chunk = "" |
Copy the default template of openssl.cnf
to a writable location.
cp /usr/lib/ssl/openssl.cnf .
Uncomment the req_extensions = v3_req
req_extensions = v3_req # The extensions to add to a certificate request
Add subjectAltName
to v3_req section
// extract all headers | |
var headers = [] | |
function walk (nodes) { | |
nodes.forEach((node) => { | |
var sub = Array.from(node.childNodes) | |
if (sub.length) { | |
walk(sub) | |
} |