Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.0.14 #78

Merged
merged 9 commits into from
Nov 15, 2024
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ 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.14] — 2024-11-14

### Changed

- Query Documents endpoint is a POST request for better DX
- `String` columns are now `TEXT` columns to match postgres best practices
- Docstrings to have better stainless generations

### Fixed

- Dialectic API to use most recent user representation
- Prepared Statements Transient Error with `psycopg`
- Queue parallel worker scheduling

## [0.0.13] — 2024-11-07

### 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.13-blue)
![Static Badge](https://img.shields.io/badge/Version-0.0.14-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
4 changes: 2 additions & 2 deletions docs/api-reference/endpoint/documents/query-documents.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v1/apps/{app_id}/users/{user_id}/collections/{collection_id}/documents/query
---
openapi: POST /v1/apps/{app_id}/users/{user_id}/collections/{collection_id}/documents/query
---
14 changes: 7 additions & 7 deletions docs/getting-started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Next, we want to register an application with the Honcho client:
<CodeGroup>

```python Python
app = client.apps.get_or_create(
app = honcho.apps.get_or_create(
name="string",
)
```
Expand Down Expand Up @@ -81,11 +81,11 @@ Now let's create a session for that application. Honcho is a user context manage
<CodeGroup>

```python Python
session = client.apps.users.sessions.create(user.id, app.id, location_id=default)
session = honcho.apps.users.sessions.create(user.id, app.id)
```

```javascript NodeJS
const session = client.apps.users.sessions.create(app.id, user.id, { location_id: "default"}) -> Session
const session = honcho.apps.users.sessions.create(app.id, user.id) -> Session
```

</CodeGroup>
Expand All @@ -95,11 +95,11 @@ Let's add a user message and an AI message to that session:
<CodeGroup>

```python Python
client.apps.users.sessions.messages.create(session.id, app.id, user.id, content="Test", is_user=True)
honcho.apps.users.sessions.messages.create(session.id, app.id, user.id, content="Test", is_user=True)
```

```javascript NodeJS
client.apps.users.sessions.messages.create(app.id, user.id, session.id, { content: "Test", is_user: true })
honcho.apps.users.sessions.messages.create(app.id, user.id, session.id, { content: "Test", is_user: true })
```

</CodeGroup>
Expand All @@ -109,7 +109,7 @@ You can also easily query Honcho to get the session objects for that user with t
<CodeGroup>

```python Python
async for session in client.apps.users.list(app.id, user.id):
async for session in honcho.apps.users.list(app.id, user.id):
doSomethingWith(session)
```

Expand All @@ -124,4 +124,4 @@ for await (const session of honcho.apps.users.sessions.list(app.id, user.id)) {

This is a super simple overview of how to get up and running with the Honcho SDK. We covered the basic methods for reading and writing from the hosted storage service. Next, we'll cover alternative forms of hosting Honcho.

For a more detailed look at the SDK check out the SDK reference [here](https://api.python.honcho.dev/).
For a more detailed look at the SDK check out the SDK reference [here](/api-reference).
Loading