diff --git a/README.md b/README.md index da6caf3..1846d2e 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,8 @@ import asyncio from nomyo import SecureChatCompletion async def main(): - # Initialize client (defaults to http://api.nomyo.ai:12434) - client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") + # Initialize client (defaults to https://api.nomyo.ai) + client = SecureChatCompletion(base_url="https://api.nomyo.ai") # Simple chat completion response = await client.create( @@ -156,7 +156,7 @@ import asyncio from nomyo import SecureChatCompletion async def main(): - client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") + client = SecureChatCompletion(base_url="https://api.nomyo.ai") response = await client.create( model="Qwen/Qwen3-0.6B", @@ -181,7 +181,7 @@ import asyncio from nomyo import SecureChatCompletion async def main(): - client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") + client = SecureChatCompletion(base_url="https://api.nomyo.ai") response = await client.create( model="Qwen/Qwen3-0.6B", @@ -220,7 +220,7 @@ import asyncio from nomyo import SecureChatCompletion async def main(): - client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") + client = SecureChatCompletion(base_url="https://api.nomyo.ai") response = await client.acreate( model="Qwen/Qwen3-0.6B", @@ -270,7 +270,7 @@ from nomyo import SecureChatCompletion async def main(): # Initialize with API key (recommended for production) client = SecureChatCompletion( - base_url="https://api.nomyo.ai:12434", + base_url="https://api.nomyo.ai", api_key="your-api-key-here" ) @@ -295,13 +295,13 @@ from nomyo import SecureChatCompletion async def main(): # Enable secure memory protection (default, recommended) client = SecureChatCompletion( - base_url="https://api.nomyo.ai:12434", + base_url="https://api.nomyo.ai", secure_memory=True # Default ) # Disable secure memory (not recommended, for testing only) client = SecureChatCompletion( - base_url="https://api.nomyo.ai:12434", + base_url="https://api.nomyo.ai", secure_memory=False ) @@ -346,7 +346,7 @@ asyncio.run(main()) ```python SecureChatCompletion( - base_url: str = "https://api.nomyo.ai:12434", + base_url: str = "https://api.nomyo.ai", allow_http: bool = False, api_key: Optional[str] = None, secure_memory: bool = True @@ -370,7 +370,7 @@ SecureChatCompletion( #### Constructor ```python -SecureCompletionClient(router_url: str = "http://api.nomyo.ai:12434") +SecureCompletionClient(router_url: str = "https://api.nomyo.ai") ``` #### Methods diff --git a/SECURE_MEMORY.md b/SECURE_MEMORY.md index bdaacdb..9631613 100644 --- a/SECURE_MEMORY.md +++ b/SECURE_MEMORY.md @@ -29,7 +29,7 @@ from nomyo import SecureChatCompletion # Create client with secure memory enabled (default) client = SecureChatCompletion( - base_url="https://api.nomyo.ai:12434", + base_url="https://api.nomyo.ai", secure_memory=True # Enabled by default ) @@ -47,7 +47,7 @@ from nomyo import SecureChatCompletion # Disable secure memory for testing or when not needed client = SecureChatCompletion( - base_url="https://api.nomyo.ai:12434", + base_url="https://api.nomyo.ai", secure_memory=False ) ``` @@ -210,7 +210,7 @@ from nomyo import SecureChatCompletion async def secure_chat(): # Create client with maximum security client = SecureChatCompletion( - base_url="https://api.nomyo.ai:12434", + base_url="https://api.nomyo.ai", secure_memory=True # Default ) diff --git a/SECURITY.md b/SECURITY.md index f5a2179..c8e42c5 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,7 +12,7 @@ The client MUST connect using HTTPS in production environments: ```python # ✅ SECURE (Production) -client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") +client = SecureChatCompletion(base_url="https://api.nomyo.ai") # ⚠️ INSECURE (Local development only) client = SecureChatCompletion(base_url="http://localhost:12434", allow_http=True) diff --git a/doc/api-reference.md b/doc/api-reference.md index 1e16436..439e471 100644 --- a/doc/api-reference.md +++ b/doc/api-reference.md @@ -92,7 +92,7 @@ The `SecureCompletionClient` class handles the underlying encryption, key manage ### Constructor ```python -SecureCompletionClient(router_url: str = "https://api.nomyo.ai:12434", allow_http: bool = False) +SecureCompletionClient(router_url: str = "https://api.nomyo.ai", allow_http: bool = False) ``` **Parameters:** diff --git a/doc/getting-started.md b/doc/getting-started.md index 2eb6c1e..4ccdf82 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -197,7 +197,7 @@ import asyncio from nomyo import SecureChatCompletion, AuthenticationError, InvalidRequestError async def main(): - client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") + client = SecureChatCompletion(base_url="https://api.nomyo.ai") try: response = await client.create( diff --git a/nomyo/SecureCompletionClient.py b/nomyo/SecureCompletionClient.py index 66cd94a..7bbe0fe 100644 --- a/nomyo/SecureCompletionClient.py +++ b/nomyo/SecureCompletionClient.py @@ -76,7 +76,7 @@ class SecureCompletionClient: - Response parsing """ - def __init__(self, router_url: str = "https://api.nomyo.ai:12435", allow_http: bool = False, secure_memory: bool = True): + def __init__(self, router_url: str = "https://api.nomyo.ai", allow_http: bool = False, secure_memory: bool = True): """ Initialize the secure completion client. diff --git a/nomyo/__init__.py b/nomyo/__init__.py index 9c4d160..e1406d8 100644 --- a/nomyo/__init__.py +++ b/nomyo/__init__.py @@ -51,6 +51,6 @@ try: except ImportError: pass -__version__ = "0.2.2" +__version__ = "0.2.3" __author__ = "NOMYO AI" __license__ = "Apache-2.0" diff --git a/nomyo/nomyo.py b/nomyo/nomyo.py index 7787c0a..682997b 100644 --- a/nomyo/nomyo.py +++ b/nomyo/nomyo.py @@ -29,7 +29,7 @@ class SecureChatCompletion: Usage: ```python # Create a client instance - client = SecureChatCompletion(base_url="https://api.nomyo.ai:12435") + client = SecureChatCompletion(base_url="https://api.nomyo.ai") # Simple chat completion response = await client.create( @@ -52,7 +52,7 @@ class SecureChatCompletion: ``` """ - def __init__(self, base_url: str = "https://api.nomyo.ai:12435", allow_http: bool = False, api_key: Optional[str] = None, secure_memory: bool = True, key_dir: Optional[str] = None): + def __init__(self, base_url: str = "https://api.nomyo.ai", allow_http: bool = False, api_key: Optional[str] = None, secure_memory: bool = True, key_dir: Optional[str] = None): """ Initialize the secure chat completion client. diff --git a/pyproject.toml b/pyproject.toml index 3abe372..108f1e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "nomyo" -version = "0.2.2" +version = "0.2.3" description = "OpenAI-compatible secure chat client with end-to-end encryption for NOMYO Inference Endpoints" authors = [ {name = "NOMYO.AI", email = "ichi@nomyo.ai"},