doc: update base_url ver: bump
This commit is contained in:
parent
c9ce0c38bb
commit
c80625a418
9 changed files with 21 additions and 21 deletions
20
README.md
20
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:**
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,6 @@ try:
|
|||
except ImportError:
|
||||
pass
|
||||
|
||||
__version__ = "0.2.2"
|
||||
__version__ = "0.2.3"
|
||||
__author__ = "NOMYO AI"
|
||||
__license__ = "Apache-2.0"
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue