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

Stainless #54

Merged
merged 4 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 🫡 Honcho
![Static Badge](https://img.shields.io/badge/Version-0.0.7-blue)
![Static Badge](https://img.shields.io/badge/Version-0.0.8-blue)
[![Discord](https://img.shields.io/discord/1016845111637839922?style=flat&logo=discord&logoColor=23ffffff&label=Plastic%20Labs&labelColor=235865F2)](https://discord.gg/plasticlabs)
![GitHub License](https://img.shields.io/github/license/plastic-labs/honcho)
![GitHub Repo stars](https://img.shields.io/github/stars/plastic-labs/honcho)
Expand Down
19 changes: 19 additions & 0 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ 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.8] — 2024-05-09

### Added

* Documentation to OpenAPI
* Bearer token auth to OpenAPI routes
* Get by ID routes for users and collections

### Changed

* Authentication Middleware now implemented using built-in FastAPI Security
module
* Get by name routes for users and collections now include "name" in slug

### Fixed

* Error reporting for methods with integrity errors due to unique key
constraints

## [0.0.7] — 2024-04-01

### Added
Expand Down
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "honcho"
version = "0.0.7"
version = "0.0.8"
description = "Honcho Server"
authors = ["Plastic Labs <[email protected]>"]
readme = "README.md"
Expand Down
12 changes: 11 additions & 1 deletion api/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,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.1.0",
version="0.0.8",
contact={
"name": "Plastic Labs",
"url": "https://plasticlabs.ai",
Expand All @@ -223,6 +223,16 @@ async def lifespan(app: FastAPI):
allow_headers=["*"],
)

origins = ["http://localhost", "http://127.0.0.1:8000", "https://demo.honcho.dev"]

app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)


if OPENTELEMTRY_ENABLED:
FastAPIInstrumentor().instrument_app(app)
Expand Down
1 change: 0 additions & 1 deletion api/src/routers/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ async def create_app(
try:
honcho_app = await crud.create_app(db, app=app)
return honcho_app

except IntegrityError as e:
raise HTTPException(
status_code=406, detail="App with name may already exist"
Expand Down
Loading