Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramimashkouk committed Oct 1, 2024
1 parent 3db4f79 commit d3006b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion backend/chatsky_ui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def init(
"https://github.com/Ramimashkouk/df_d_template.git",
no_input=no_input,
overwrite_if_exists=overwrite_if_exists,
checkout="feat/add-slots2"
)
finally:
os.chdir(original_dir)
13 changes: 4 additions & 9 deletions backend/chatsky_ui/services/json_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def map_interface(interface: DictConfig) -> dict:
if not isinstance(interface, DictConfig):
raise ValueError(f"Interface must be a dictionary. Got: {type(interface)}")
keys = interface.keys()
if len(keys)!=1:
if len(keys) != 1:
raise ValueError("There must be only one key in the interface")

key = next(iter(keys))
Expand All @@ -213,18 +213,13 @@ def map_interface(interface: DictConfig) -> dict:
raise ValueError("Token keyworkd is not provided for telegram interface")
if not interface[key]["token"]:
raise ValueError("Token is not provided for telegram interface")
return {
"chatsky.messengers.telegram.LongpollingInterface": {
"token": interface[key]["token"]
}
}
return {"chatsky.messengers.telegram.LongpollingInterface": {"token": interface[key]["token"]}}
if key == "cli":
return {
"chatsky.messengers.console.CLIMessengerInterface": {}
}
return {"chatsky.messengers.console.CLIMessengerInterface": {}}
else:
raise ValueError(f"Unknown interface: {key}")


async def converter(build_id: int) -> None:
"""Translate frontend flow script into chatsky script."""
frontend_graph_path, script_path, custom_conditions_file, custom_responses_file = _get_db_paths(build_id)
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "chatsky-ui"
version = "0.2.0"
version = "0.3.0"
description = "Chatsky-UI is GUI for Chatsky Framework, that is a free and open-source software stack for creating chatbots, released under the terms of Apache License 2.0."
license = "Apache-2.0"
authors = [
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
import sys
from chatsky_ui import __version__

sys.path.insert(0, os.path.abspath(".."))
# -- Project information -----------------------------------------------------
Expand All @@ -13,7 +14,7 @@
project = 'Chatsky-UI'
copyright = '2024, Denis Kuznetsov, Maks Rogatkin, Rami Mashkouk'
author = 'Denis Kuznetsov, Maks Rogatkin, Rami Mashkouk'
release = '0.2.0'
release = __version__

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/maste r/usage/configuration.html#general-configuration
Expand Down
Binary file modified frontend/bun.lockb
Binary file not shown.

0 comments on commit d3006b0

Please sign in to comment.