Skip to content

Commit

Permalink
1.7.x changes with chat.Chat and new Model implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbonde committed Feb 26, 2024
1 parent 39c30e3 commit 191c030
Show file tree
Hide file tree
Showing 55 changed files with 1,946 additions and 3,863 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ COPY --from=builder /app/dist/. /app/chainfury_server/static/.

WORKDIR /app/chainfury_server
EXPOSE 8000
CMD ["python3", "server.py", "--host", "0.0.0.0", "--port", "8000"]
CMD ["python3", "-m", "chainfury_server", "--host", "0.0.0.0", "--port", "8000"]
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ sh stories/build_and_copy.sh
Once the static files are copied we can now proceed to install dependecies:

```bash
pip install setuptools
pip install -e . # editable install the chainfury
cd server
pip install -e . # editable install the chainfury_server
pip install -e server/. # editable install the chainfury_server
python3 -m chainfury_server
```

To start you can now do:
You can now visit [localhost:8000](http://localhost:8000/ui/) to see the GUI.

### Tests

There are a few test cases for super hard problems like `get_kv` which checks the `chainfury.base.get_value_by_keys` function.

```bash
cd chainfury_server
python3 server.py
python3 tests/get_kv.py -v
```

You can now visit [localhost:8000](http://localhost:8000/ui/) to see the GUI.

# Contibutions

ChainFury is an open-source project used in production. We are open to contributions to the project in the form of features,
Expand Down
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.6.4"
release = "1.7.0a0"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
14 changes: 13 additions & 1 deletion chainfury/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2023- Frello Technology Private Limited

import os
import dotenv

Expand All @@ -13,7 +15,7 @@
CFEnv,
)
from chainfury.base import Var, Node, Secret, Chain, Model, Edge
from chainfury.agent import (
from chainfury.core import (
model_registry,
programatic_actions_registry,
ai_actions_registry,
Expand All @@ -22,4 +24,14 @@
Memory,
)
from chainfury.client import get_client
from chainfury.chat import (
Message,
Chat,
TuneChats,
TuneDataset,
human,
system,
assistant,
)

from chainfury import components
2 changes: 2 additions & 0 deletions chainfury/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2023- Frello Technology Private Limited

from chainfury.cli import main

main()
Loading

0 comments on commit 191c030

Please sign in to comment.