Hanzo Chat
Copyright (c) 2023-2026 Hanzo AI, Inc.

This repository has two upstreams. Both are MIT-licensed and both are named here
as they name themselves.


LibreChat -- primary upstream
----------------------------
https://github.com/danny-avila/LibreChat

    Copyright (c) 2026 LibreChat

LibreChat's MIT licence is reproduced verbatim in LICENSE. The application in
this repository (api/, client/, packages/, e2e/, the chat.yaml configuration
surface) descends from it; this repository's LibreChat root commit is upstream's
own initial import.


LiteLLM -- secondary upstream
-----------------------------
https://github.com/BerriAI/litellm

    Copyright (c) 2023 Berri AI

LiteLLM code and history are also present in this repository (the repository has
a second root commit, LiteLLM's initial import, and retains LiteLLM-derived files
under tests/, docker/build_from_pip/ and scripts/). LiteLLM is distributed under
a split licence:

  Portions of this software are licensed as follows:

  * All content that resides under the "enterprise/" directory of this
    repository, if that directory exists, is licensed under the license defined
    in "enterprise/LICENSE".
  * Content outside of the above mentioned directories or restrictions above is
    available under the MIT license as defined below.
  ---
  MIT License

  Copyright (c) 2023 Berri AI

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.

This repository has no root "enterprise/" directory, so that carve-out is
presently inert; the clause is reproduced above so it travels with the code.


Prior defects recorded here so they are not repeated
----------------------------------------------------
1. The LICENSE file in this repository was LiteLLM's licence text with
   LibreChat's copyright holder substituted into it, plus a line reading
   "Originally based on LibreChat by Berri AI" -- LibreChat is not a Berri AI
   project. LICENSE is now LibreChat's file, byte-identical to upstream.
2. An earlier revision of this file credited "Chat
   (https://github.com/danny-avila/Chat)", a project that does not exist and a
   URL that 404s: a debrand pass rewrote the one string it had to leave alone.

Hanzo branding (product name, logos, package names, documentation) is Hanzo's own
and is not part of either upstream work.
