Skip to content
Open
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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-...
Expand Down Expand Up @@ -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"
}'
```
Expand Down
9 changes: 0 additions & 9 deletions tee_gateway/controllers/defaults.py

This file was deleted.

35 changes: 9 additions & 26 deletions tee_gateway/typing_utils.py
Original file line number Diff line number Diff line change
@@ -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