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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue