Integrate BACKBEAT SDK and resolve KACHING license validation
Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
49
test-resetdata-simple.py
Normal file
49
test-resetdata-simple.py
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Simple test to validate ResetData API integration
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Add the local library path
|
||||
sys.path.append('/home/tony/.local/lib/python3.12/site-packages')
|
||||
|
||||
try:
|
||||
from openai import OpenAI
|
||||
|
||||
api_key = os.getenv('RESETDATA_API_KEY')
|
||||
if not api_key:
|
||||
print("❌ RESETDATA_API_KEY not set")
|
||||
sys.exit(1)
|
||||
|
||||
print("🌐 Testing ResetData API directly...")
|
||||
print(f"📋 Using API key: {api_key[:20]}...")
|
||||
|
||||
client = OpenAI(
|
||||
base_url="https://models.au-syd.resetdata.ai/v1",
|
||||
api_key=api_key
|
||||
)
|
||||
|
||||
response = client.chat.completions.create(
|
||||
model="meta/llama-3.1-8b-instruct:ptu-9f3627a0-4909-4561-8996-272774e91fc8",
|
||||
messages=[
|
||||
{"role": "system", "content": "You are a helpful assistant."},
|
||||
{"role": "user", "content": "What is the capital of Australia? Answer briefly."}
|
||||
],
|
||||
temperature=0.2,
|
||||
top_p=0.7,
|
||||
max_tokens=50
|
||||
)
|
||||
|
||||
if response.choices and response.choices[0].message.content:
|
||||
print("✅ Direct ResetData API test successful!")
|
||||
print(f"📝 Response: {response.choices[0].message.content}")
|
||||
print("✨ ResetData integration working correctly!")
|
||||
else:
|
||||
print("❌ No valid response from ResetData API")
|
||||
sys.exit(1)
|
||||
|
||||
except Exception as e:
|
||||
print(f"❌ Direct ResetData API test failed: {e}")
|
||||
sys.exit(1)
|
||||
Reference in New Issue
Block a user