diff --git a/README.md b/README.md index f79638a..e82e2e2 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The gateway solves this by running inside a hardware-isolated Nitro Enclave wher |----------|--------| | OpenAI | gpt-4.1, gpt-5, gpt-5-mini, o4-mini | | Anthropic | claude-sonnet-4-5, claude-sonnet-4-6, claude-haiku-4-5, claude-opus-4-5, claude-opus-4-6 | -| Google | gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gemini-3-pro-preview, gemini-3-flash-preview | +| Google | gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gemini-3-flash-preview | | xAI | grok-4, grok-4-fast, grok-4-1-fast, grok-4-1-fast-non-reasoning | ## Quick Start @@ -40,7 +40,7 @@ The gateway solves this by running inside a hardware-isolated Nitro Enclave wher ```bash # Install dependencies -pip install -r requirements.txt +pip install . # Set API keys export OPENAI_API_KEY=sk-... @@ -79,7 +79,7 @@ curl -X POST http://127.0.0.1:8000/v1/chat/completions \ curl -X POST http://127.0.0.1:8000/v1/completions \ -H "Content-Type: application/json" \ -d '{ - "model": "claude-3.7-sonnet", + "model": "claude-sonnet-4-5", "prompt": "Explain quantum computing in one sentence" }' ``` diff --git a/tee_gateway/controllers/defaults.py b/tee_gateway/controllers/defaults.py deleted file mode 100644 index e54a5e6..0000000 --- a/tee_gateway/controllers/defaults.py +++ /dev/null @@ -1,9 +0,0 @@ -""" -Default configuration for the OpenAPI server controllers. -""" - -import os - -# The internal LLM backend server (server.py running inside the enclave). -# This is a temporary setup - controllers will eventually call LangChain directly. -HTTP_BACKEND_SERVER = os.getenv("LLM_BACKEND_URL", "http://127.0.0.1:8001") diff --git a/tee_gateway/typing_utils.py b/tee_gateway/typing_utils.py index d62e8e7..3043122 100644 --- a/tee_gateway/typing_utils.py +++ b/tee_gateway/typing_utils.py @@ -1,30 +1,13 @@ -import sys +def is_generic(klass): + """Determine whether klass is a generic class""" + return hasattr(klass, "__origin__") -if sys.version_info < (3, 7): - import typing - def is_generic(klass): - """Determine whether klass is a generic class""" - return type(klass) is typing.GenericMeta +def is_dict(klass): + """Determine whether klass is a Dict""" + return klass.__origin__ is dict - def is_dict(klass): - """Determine whether klass is a Dict""" - return klass.__extra__ is dict - def is_list(klass): - """Determine whether klass is a List""" - return klass.__extra__ is list - -else: - - def is_generic(klass): - """Determine whether klass is a generic class""" - return hasattr(klass, "__origin__") - - def is_dict(klass): - """Determine whether klass is a Dict""" - return klass.__origin__ is dict - - def is_list(klass): - """Determine whether klass is a List""" - return klass.__origin__ is list +def is_list(klass): + """Determine whether klass is a List""" + return klass.__origin__ is list