Skip to content

Commit

Permalink
fix(storage) make case conventions consistent and documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti committed Nov 7, 2024
1 parent 8676624 commit cd59b9a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.13] — 2024-11-07

### Added

- Ability to clone session for a user to achieve more [loom-like](https://github.com/socketteer/loom/) behavior

## [0.0.12] — 2024-10-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🫡 Honcho

![Static Badge](https://img.shields.io/badge/Version-0.0.12-blue)
![Static Badge](https://img.shields.io/badge/Version-0.0.13-blue)
[![Discord](https://img.shields.io/discord/1016845111637839922?style=flat&logo=discord&logoColor=23ffffff&label=Plastic%20Labs&labelColor=235865F2)](https://discord.gg/plasticlabs)
[![arXiv](https://img.shields.io/badge/arXiv-2310.06983-b31b1b.svg)](https://arxiv.org/abs/2310.06983)
![GitHub License](https://img.shields.io/github/license/plastic-labs/honcho)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "honcho"
version = "0.0.12"
version = "0.0.13"
description = "Honcho Server"
authors = [
{name = "Plastic Labs", email = "[email protected]"},
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def lifespan(app: FastAPI):
summary="An API for adding personalization to AI Apps",
description="""This API is used to store data and get insights about users for AI
applications""",
version="0.0.12",
version="0.0.13",
contact={
"name": "Plastic Labs",
"url": "https://plasticlabs.ai",
Expand Down
8 changes: 4 additions & 4 deletions src/routers/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ async def clone_session(
user_id: str,
session_id: str,
db=db,
messageId: Optional[str] = None,
deepCopy: bool = False,
message_id: Optional[str] = None,
deep_copy: bool = False,
):
return await crud.clone_session(
db,
app_id=app_id,
user_id=user_id,
original_session_id=session_id,
cutoff_message_id=messageId,
deep_copy=deepCopy,
cutoff_message_id=message_id,
deep_copy=deep_copy,
)
6 changes: 3 additions & 3 deletions tests/routes/test_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def test_partial_clone_session(client, db_session, sample_data):
await db_session.commit()

response = client.get(
f"/v1/apps/{test_app.public_id}/users/{test_user.public_id}/sessions/{test_session.public_id}/clone?messageId={test_message2.public_id}",
f"/v1/apps/{test_app.public_id}/users/{test_user.public_id}/sessions/{test_session.public_id}/clone?message_id={test_message2.public_id}",
)
assert response.status_code == 200
data = response.json()
Expand Down Expand Up @@ -297,7 +297,7 @@ async def test_deep_clone_session(client, db_session, sample_data):
await db_session.commit()

response = client.get(
f"/v1/apps/{test_app.public_id}/users/{test_user.public_id}/sessions/{test_session.public_id}/clone?deepCopy=true",
f"/v1/apps/{test_app.public_id}/users/{test_user.public_id}/sessions/{test_session.public_id}/clone?deep_copy=true",
)
assert response.status_code == 200
data = response.json()
Expand Down Expand Up @@ -405,7 +405,7 @@ async def test_partial_deep_clone_session(client, db_session, sample_data):
await db_session.commit()

response = client.get(
f"/v1/apps/{test_app.public_id}/users/{test_user.public_id}/sessions/{test_session.public_id}/clone?deepCopy=true&messageId={test_message.public_id}",
f"/v1/apps/{test_app.public_id}/users/{test_user.public_id}/sessions/{test_session.public_id}/clone?deep_copy=true&message_id={test_message.public_id}",
)
assert response.status_code == 200
data = response.json()
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd59b9a

Please sign in to comment.