Skip to content

Commit 9f4ca12

Browse files
authoredDec 11, 2024
Merge branch 'ai16z:main' into main
2 parents dcd1e88 + 021205e commit 9f4ca12

File tree

99 files changed

+5489
-3749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+5489
-3749
lines changed
 

‎.env.example

+29-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ DISCORD_VOICE_CHANNEL_ID= # The ID of the voice channel the bot should join (opt
66
# AI Model API Keys
77
OPENAI_API_KEY= # OpenAI API key, starting with sk-
88

9+
# Eternal AI's Decentralized Inference API
910
ETERNALAI_URL=
11+
ETERNALAI_MODEL= #Default: "neuralmagic/Meta-Llama-3.1-405B-Instruct-quantized.w4a16"
1012
ETERNALAI_API_KEY=
1113

1214
GROK_API_KEY= # GROK API Key
@@ -16,6 +18,14 @@ GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
1618

1719
ALI_BAILIAN_API_KEY= # Ali Bailian API Key
1820
VOLENGINE_API_KEY= # VolEngine API Key
21+
NANOGPT_API_KEY= # NanoGPT API Key
22+
23+
HYPERBOLIC_API_KEY= # Hyperbolic API Key
24+
HYPERBOLIC_MODEL=
25+
IMAGE_HYPERBOLIC_MODEL= # Default: FLUX.1-dev
26+
SMALL_HYPERBOLIC_MODEL= # Default: meta-llama/Llama-3.2-3B-Instruct
27+
MEDIUM_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-70B-Instruct
28+
LARGE_HYPERBOLIC_MODEL= # Default: meta-llama/Meta-Llama-3.1-405-Instruct
1929

2030
# Speech Synthesis
2131
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
@@ -87,6 +97,11 @@ MEDIUM_GROQ_MODEL= # Default: llama-3.3-70b-versatile
8797
LARGE_GROQ_MODEL= # Default: llama-3.2-90b-vision-preview
8898
EMBEDDING_GROQ_MODEL= # Default: llama-3.1-8b-instant
8999

100+
# NanoGPT Configuration
101+
SMALL_NANOGPT_MODEL= # Default: gpt-4o-mini
102+
MEDIUM_NANOGPT_MODEL= # Default: gpt-4o
103+
LARGE_NANOGPT_MODEL= # Default: gpt-4o
104+
90105
#LlamaLocal Configuration
91106
LLAMALOCAL_PATH= # Default: "" which is the current directory in plugin-node/dist/ which gets destroyed and recreated on every build
92107

@@ -184,7 +199,12 @@ ZEROG_PRIVATE_KEY=
184199
ZEROG_FLOW_ADDRESS=
185200

186201
# TEE Configuration
187-
DSTACK_SIMULATOR_ENDPOINT=
202+
# TEE_MODE options:
203+
# - LOCAL: Uses simulator at localhost:8090 (for local development)
204+
# - DOCKER: Uses simulator at host.docker.internal:8090 (for docker development)
205+
# - PRODUCTION: No simulator, uses production endpoints
206+
# Defaults to OFF if not specified
207+
TEE_MODE=OFF #LOCAL|DOCKER|PRODUCTION
188208
WALLET_SECRET_SALT= # ONLY DEFINE IF YOU WANT TO USE TEE Plugin, otherwise it will throw errors
189209

190210
# Galadriel Configuration
@@ -214,3 +234,11 @@ INTERNET_COMPUTER_ADDRESS=
214234
# Aptos
215235
APTOS_PRIVATE_KEY= # Aptos private key
216236
APTOS_NETWORK= # must be one of mainnet, testnet
237+
238+
239+
# AWS S3 Configuration Settings for File Upload
240+
AWS_ACCESS_KEY_ID=
241+
AWS_SECRET_ACCESS_KEY=
242+
AWS_REGION=
243+
AWS_S3_BUCKET=
244+
AWS_S3_UPLOAD_PATH=

‎.github/workflows/image.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#
2+
name: Create and publish a Docker image
3+
4+
# Configures this workflow to run every time a change is pushed to the branch called `release`.
5+
on:
6+
release:
7+
types: [created]
8+
workflow_dispatch:
9+
10+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
14+
15+
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
16+
jobs:
17+
build-and-push-image:
18+
runs-on: ubuntu-latest
19+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
20+
permissions:
21+
contents: read
22+
packages: write
23+
attestations: write
24+
id-token: write
25+
#
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
30+
- name: Log in to the Container registry
31+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
32+
with:
33+
registry: ${{ env.REGISTRY }}
34+
username: ${{ github.actor }}
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
37+
- name: Extract metadata (tags, labels) for Docker
38+
id: meta
39+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
40+
with:
41+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
43+
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
44+
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
45+
- name: Build and push Docker image
46+
id: push
47+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
48+
with:
49+
context: .
50+
push: true
51+
tags: ${{ steps.meta.outputs.tags }}
52+
labels: ${{ steps.meta.outputs.labels }}
53+
54+
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
55+
- name: Generate artifact attestation
56+
uses: actions/attest-build-provenance@v1
57+
with:
58+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
59+
subject-digest: ${{ steps.push.outputs.digest }}
60+
push-to-registry: true
61+

0 commit comments

Comments
 (0)