This file contains hidden or 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 json | |
| from typing import List, Dict, Any | |
| from pydantic import BaseModel, Field | |
| from openai import OpenAI | |
| import requests | |
| # Use system environment variable for OpenAI API key | |
| client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY")) |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| ################################################# | |
| # Please do not make any changes to this file, # | |
| # change the variables in webui-user.sh instead # | |
| ################################################# | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
| # If run from macOS, load defaults from webui-macos-env.sh | |
| if [[ "$OSTYPE" == "darwin"* ]]; then |
This file contains hidden or 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 | |
| # cool_gpu2.sh This script will enable or disable fixed gpu fan speed | |
| # | |
| # Description: A script to control GPU fan speed on headless (non-X) linux nodes | |
| # Original Script by Axel Kohlmeyer <akohlmey@gmail.com> | |
| # https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness | |
| # | |
| # Modified for newer drivers and removed old work-arounds |