- Temperature auto-clamping for MiniMax models: (0, 1] range enforcement - <think> tag handling for MiniMax M2.7 reasoning output (alongside existing <thinking> support) - MiniMax configuration example in mykey_template.py - Updated README.md and GETTING_STARTED.md with MiniMax provider docs - 19 unit tests + 6 integration tests (3 live tests with MINIMAX_API_KEY) MiniMax models (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed) are accessed via the standard OpenAI-compatible interface at https://api.minimax.io/v1, using the existing LLMSession with an 'oai'-prefixed config key.
18 lines
695 B
Python
18 lines
695 B
Python
"""Conftest to allow importing llmcore without mykey.py/mykey.json."""
|
|
import os
|
|
import json
|
|
import sys
|
|
|
|
# Create a minimal mykey.json so llmcore can be imported in test environments
|
|
_repo_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
_mykey_path = os.path.join(_repo_dir, 'mykey.json')
|
|
if not os.path.exists(_mykey_path) and not os.path.exists(os.path.join(_repo_dir, 'mykey.py')):
|
|
with open(_mykey_path, 'w') as f:
|
|
json.dump({}, f)
|
|
import atexit
|
|
atexit.register(lambda: os.path.exists(_mykey_path) and os.unlink(_mykey_path))
|
|
|
|
# Create temp/ dir needed by _write_llm_log
|
|
_temp_dir = os.path.join(_repo_dir, 'temp')
|
|
os.makedirs(_temp_dir, exist_ok=True)
|