-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
180 additions
and
61 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# file generated by setuptools_scm | ||
# don't change, don't track in version control | ||
__version__ = version = "0.1.1.dev4" | ||
__version_tuple__ = version_tuple = (0, 1, 1, "dev4") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import click | ||
|
||
|
||
@click.group(no_args_is_help=True) | ||
def cli(): | ||
pass | ||
|
||
|
||
@cli.command("start") | ||
@click.option( | ||
"--host", | ||
type=str, | ||
help="Bind socket to this host. Default: 127.0.0.1", | ||
) | ||
@click.option( | ||
"--port", | ||
type=int, | ||
help="Bind socket to this port. Default: 8000", | ||
) | ||
def start( | ||
host=None, | ||
port=None, | ||
): | ||
import uvicorn | ||
|
||
host = host or "127.0.0.1" | ||
port = 8000 if port is None else port | ||
uvicorn.run("llm_gateway.app:app", host=host, port=port, log_level="info") | ||
|
||
|
||
if __name__ == "__main__": | ||
cli() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import os | ||
from os.path import exists | ||
|
||
from setuptools import find_packages, setup | ||
|
||
description = open("README.md").read() if exists("README.md") else "" | ||
|
||
setup( | ||
name="llm_gateway", | ||
description="", | ||
long_description=description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/wealthsimple/llm-gateway", | ||
author="Wealthsimple Data Science & Engineering", | ||
author_email="[email protected]", | ||
license="Apache License 2.0", | ||
packages=find_packages(include=["llm_gateway", "front_end"]), | ||
package_data={"front_end": ["front_end/**"]}, | ||
entry_points={ | ||
"console_scripts": [ | ||
"llm_gateway = llm_gateway.cli:cli", | ||
], | ||
}, | ||
use_scm_version={ | ||
"write_to": "llm_gateway/_version.py", | ||
"fallback_version": "0.0.0", | ||
"local_scheme": "no-local-version", | ||
}, | ||
setup_requires=["setuptools_scm"], | ||
install_requires=[ | ||
"click", | ||
"fastapi>=0.95.0", | ||
"pydantic>=1.10.7", | ||
"psycopg2-binary~=2.9.3", | ||
"alembic~=1.8.0", | ||
"sqlalchemy>=1.3.0", | ||
"uvicorn[standard]>=0.21.1", | ||
"openai[datalib]>=0.27.4", | ||
"cohere>=4.6.1", | ||
"click>=8.1.4", | ||
], | ||
extras_require={ | ||
"openai": [ | ||
"datalib", | ||
], | ||
"dev": [ | ||
"black==23.3.0", | ||
"isort==5.12.0", | ||
"flake8>=6.0.0", | ||
"pre-commit>=3.2.2", | ||
"pytest>=7.3.0", | ||
"urllib3==1.26.15", | ||
], | ||
}, | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
], | ||
) |