Skip to content

Commit

Permalink
[chore] add secrets + improved tests + expanded types
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbonde committed Mar 12, 2024
1 parent 0f43038 commit 094a454
Show file tree
Hide file tree
Showing 29 changed files with 924 additions and 799 deletions.
29 changes: 29 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# chainfury server
# ================
# These are the environment variables that are used by the chainfury_server
# For chainfury jump below to the chainfury section

# Required
# --------

# URL to the database for chainfury server, uses sqlalchemy, so most things should work
CFS_DATABASE="db_drivers://username:password@host:port/db_name"

# (once in a lifetime) secret string for creating the JWT secrets
JWT_SECRET="secret"

# (once in a lifetime) password to store the user secrets
CFS_SECRETS_PASSWORD="password"

# chainfury
# =========
# These are the environment variables that are used by the chainfury

# To store all the file and data in the chainfury server
CF_FOLDER="~/cf"

# (client mode) the URL for the chainfury server
CF_URL=""

# (client mode) the token for the chainfury server
CF_TOKEN=""
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ langflow
dunmp.rdb
*.ipynb
server/chainfury_server/stories/fury.json
notebooks/*
notebooks
stories/fury.json
workers/
private.sh
Expand All @@ -153,3 +153,4 @@ demo/
logs.py
chunker/
chainfury/chains/
gosrc/
2 changes: 1 addition & 1 deletion api_docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
project = "ChainFury"
copyright = "2023, NimbleBox Engineering"
author = "NimbleBox Engineering"
release = "1.7.0a1"
release = "1.7.0a2"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
10 changes: 6 additions & 4 deletions chainfury/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
Chain,
Model,
Edge,
Tools,
Action,
)
from chainfury.core import (
model_registry,
Expand All @@ -31,11 +33,11 @@
Memory,
)
from chainfury.client import get_client
from chainfury.chat import (
from chainfury.types import (
Message,
Chat,
TuneChats,
TuneDataset,
Thread,
ThreadsList,
Dataset,
human,
system,
assistant,
Expand Down
Loading

0 comments on commit 094a454

Please sign in to comment.