fix: update base_url
All checks were successful
Publish to PyPI / publish (push) Successful in 15s

doc: update base_url

ver: bump
This commit is contained in:
Alpha Nerd 2026-04-11 17:16:24 +02:00
parent c9ce0c38bb
commit c80625a418
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M
9 changed files with 21 additions and 21 deletions

View file

@ -34,8 +34,8 @@ import asyncio
from nomyo import SecureChatCompletion from nomyo import SecureChatCompletion
async def main(): async def main():
# Initialize client (defaults to http://api.nomyo.ai:12434) # Initialize client (defaults to https://api.nomyo.ai)
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
# Simple chat completion # Simple chat completion
response = await client.create( response = await client.create(
@ -156,7 +156,7 @@ import asyncio
from nomyo import SecureChatCompletion from nomyo import SecureChatCompletion
async def main(): async def main():
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
response = await client.create( response = await client.create(
model="Qwen/Qwen3-0.6B", model="Qwen/Qwen3-0.6B",
@ -181,7 +181,7 @@ import asyncio
from nomyo import SecureChatCompletion from nomyo import SecureChatCompletion
async def main(): async def main():
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
response = await client.create( response = await client.create(
model="Qwen/Qwen3-0.6B", model="Qwen/Qwen3-0.6B",
@ -220,7 +220,7 @@ import asyncio
from nomyo import SecureChatCompletion from nomyo import SecureChatCompletion
async def main(): async def main():
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
response = await client.acreate( response = await client.acreate(
model="Qwen/Qwen3-0.6B", model="Qwen/Qwen3-0.6B",
@ -270,7 +270,7 @@ from nomyo import SecureChatCompletion
async def main(): async def main():
# Initialize with API key (recommended for production) # Initialize with API key (recommended for production)
client = SecureChatCompletion( client = SecureChatCompletion(
base_url="https://api.nomyo.ai:12434", base_url="https://api.nomyo.ai",
api_key="your-api-key-here" api_key="your-api-key-here"
) )
@ -295,13 +295,13 @@ from nomyo import SecureChatCompletion
async def main(): async def main():
# Enable secure memory protection (default, recommended) # Enable secure memory protection (default, recommended)
client = SecureChatCompletion( client = SecureChatCompletion(
base_url="https://api.nomyo.ai:12434", base_url="https://api.nomyo.ai",
secure_memory=True # Default secure_memory=True # Default
) )
# Disable secure memory (not recommended, for testing only) # Disable secure memory (not recommended, for testing only)
client = SecureChatCompletion( client = SecureChatCompletion(
base_url="https://api.nomyo.ai:12434", base_url="https://api.nomyo.ai",
secure_memory=False secure_memory=False
) )
@ -346,7 +346,7 @@ asyncio.run(main())
```python ```python
SecureChatCompletion( SecureChatCompletion(
base_url: str = "https://api.nomyo.ai:12434", base_url: str = "https://api.nomyo.ai",
allow_http: bool = False, allow_http: bool = False,
api_key: Optional[str] = None, api_key: Optional[str] = None,
secure_memory: bool = True secure_memory: bool = True
@ -370,7 +370,7 @@ SecureChatCompletion(
#### Constructor #### Constructor
```python ```python
SecureCompletionClient(router_url: str = "http://api.nomyo.ai:12434") SecureCompletionClient(router_url: str = "https://api.nomyo.ai")
``` ```
#### Methods #### Methods

View file

@ -29,7 +29,7 @@ from nomyo import SecureChatCompletion
# Create client with secure memory enabled (default) # Create client with secure memory enabled (default)
client = SecureChatCompletion( client = SecureChatCompletion(
base_url="https://api.nomyo.ai:12434", base_url="https://api.nomyo.ai",
secure_memory=True # Enabled by default secure_memory=True # Enabled by default
) )
@ -47,7 +47,7 @@ from nomyo import SecureChatCompletion
# Disable secure memory for testing or when not needed # Disable secure memory for testing or when not needed
client = SecureChatCompletion( client = SecureChatCompletion(
base_url="https://api.nomyo.ai:12434", base_url="https://api.nomyo.ai",
secure_memory=False secure_memory=False
) )
``` ```
@ -210,7 +210,7 @@ from nomyo import SecureChatCompletion
async def secure_chat(): async def secure_chat():
# Create client with maximum security # Create client with maximum security
client = SecureChatCompletion( client = SecureChatCompletion(
base_url="https://api.nomyo.ai:12434", base_url="https://api.nomyo.ai",
secure_memory=True # Default secure_memory=True # Default
) )

View file

@ -12,7 +12,7 @@ The client MUST connect using HTTPS in production environments:
```python ```python
# ✅ SECURE (Production) # ✅ SECURE (Production)
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
# ⚠️ INSECURE (Local development only) # ⚠️ INSECURE (Local development only)
client = SecureChatCompletion(base_url="http://localhost:12434", allow_http=True) client = SecureChatCompletion(base_url="http://localhost:12434", allow_http=True)

View file

@ -92,7 +92,7 @@ The `SecureCompletionClient` class handles the underlying encryption, key manage
### Constructor ### Constructor
```python ```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:** **Parameters:**

View file

@ -197,7 +197,7 @@ import asyncio
from nomyo import SecureChatCompletion, AuthenticationError, InvalidRequestError from nomyo import SecureChatCompletion, AuthenticationError, InvalidRequestError
async def main(): async def main():
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12434") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
try: try:
response = await client.create( response = await client.create(

View file

@ -76,7 +76,7 @@ class SecureCompletionClient:
- Response parsing - 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. Initialize the secure completion client.

View file

@ -51,6 +51,6 @@ try:
except ImportError: except ImportError:
pass pass
__version__ = "0.2.2" __version__ = "0.2.3"
__author__ = "NOMYO AI" __author__ = "NOMYO AI"
__license__ = "Apache-2.0" __license__ = "Apache-2.0"

View file

@ -29,7 +29,7 @@ class SecureChatCompletion:
Usage: Usage:
```python ```python
# Create a client instance # Create a client instance
client = SecureChatCompletion(base_url="https://api.nomyo.ai:12435") client = SecureChatCompletion(base_url="https://api.nomyo.ai")
# Simple chat completion # Simple chat completion
response = await client.create( 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. Initialize the secure chat completion client.

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "nomyo" 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" description = "OpenAI-compatible secure chat client with end-to-end encryption for NOMYO Inference Endpoints"
authors = [ authors = [
{name = "NOMYO.AI", email = "ichi@nomyo.ai"}, {name = "NOMYO.AI", email = "ichi@nomyo.ai"},