Skip to content

Commit

Permalink
bump:patch update
Browse files Browse the repository at this point in the history
  • Loading branch information
lone17 committed Apr 29, 2024
1 parent 09b40c0 commit bb8efd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
9 changes: 0 additions & 9 deletions flowsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,6 @@
"cost": 0,
}

if len(KH_EMBEDDINGS) < 1:
KH_EMBEDDINGS["local-bge-base-en-v1.5"] = {
"spec": {
"__type__": "kotaemon.embeddings.FastEmbedEmbeddings",
"model_name": "BAAI/bge-base-en-v1.5",
},
"default": True,
}

KH_REASONINGS = ["ktem.reasoning.simple.FullQAPipeline"]
KH_VLM_ENDPOINT = "{0}/openai/deployments/{1}/chat/completions?api-version={2}".format(
config("AZURE_OPENAI_ENDPOINT", default=""),
Expand Down
10 changes: 4 additions & 6 deletions libs/ktem/ktem/pages/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ def get_remote_doc(url):


def get_changelogs(version):
latest_release_url = (
f"https://api.github.com/repos/Cinnamon/kotaemon/releases/{version}"
)
release_url = f"https://api.github.com/repos/Cinnamon/kotaemon/releases/{version}"
try:
res = requests.get(latest_release_url).json()
res = requests.get(release_url).json()
changelogs = res.get("body", "")

return changelogs
except Exception as e:
print(f"Failed to fetch changelogs from {latest_release_url}: {e}")
print(f"Failed to fetch changelogs from {release_url}: {e}")
return ""


Expand Down Expand Up @@ -68,7 +66,7 @@ def __init__(self, app):
gr.Markdown(user_guide_md)

if self.app_version:
changelogs = get_changelogs("v" + self.app_version)
changelogs = get_changelogs("tags/v" + self.app_version)
if changelogs:
with gr.Accordion(f"Changelogs (v{self.app_version})"):
gr.Markdown(changelogs)

0 comments on commit bb8efd6

Please sign in to comment.