#!/bin/bash

# DEST=${1:-/etc/skel}
DEST=${HOME}


GROQ_API_KEY="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"

# PLugins that Use GROQ_API_KEYs get called early so so we need to put them 
# in .zshrc.pre-plugins.d so they can be loaded before the plugins are loaded.
cat <<-EOF | sudo tee "${DEST}"/.zshrc.pre-plugins.d/009_GROQ.zsh
	export GROQ_API_KEY="${GROQ_API_KEY}"
EOF



# git_url="${1:-https://github.com/groq/groq-python}"

# py2dsp --profile dpt --distribution unstable --revision 1 --github "${git_url}"


# pushd ./result/cohere-* || exit
# 	dpkg-buildpackage -us -uc -b
# popd || return

# dpkg -i result/python3-groq*.deb

# apt-get -f install

# pip install groq
#
echo "Use virtualenv mkvenv or conda create before pip installing groq"
echo "See: https://github.com/groq/groq-python"
echo "     https://github.com/groq/groq-python/blob/main/api.md"
echo "See also: https://python.langchain.com/docs/integrations/chat/groq"
