kenken999's picture
d
3d2aa58
raw
history blame
461 Bytes
import os
import shutil
import hmac
import hashlib
import base64
import subprocess
import time
def validate_signature(body: str, signature: str, secret: str) -> bool:
# ...
def set_environment_variables():
os.environ["OPENAI_API_BASE"] = "https://api.groq.com/openai/v1"
os.environ["OPENAI_API_KEY"] = "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"
os.environ["MODEL_NAME"] = "llama3-8b-8192"
os.environ["LOCAL_MODEL"] = "true"