thinking-machine 0.1.22__tar.gz → 0.1.24__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {thinking_machine-0.1.22/src/thinking_machine.egg-info → thinking_machine-0.1.24}/PKG-INFO +1 -1
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/pyproject.toml +1 -1
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/chinf.py +8 -7
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/tink.py +1 -1
- {thinking_machine-0.1.22 → thinking_machine-0.1.24/src/thinking_machine.egg-info}/PKG-INFO +1 -1
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/LICENSE +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/MANIFEST.in +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/README.md +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/setup.cfg +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/__init__.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/cli.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/config.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/githf.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/machina.yaml +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/machine.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/__init__.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/basta.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/camelids.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/castor_pollux.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/depsek.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/electroid.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/illuminati.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/light.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/openai.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/qrog.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/strangelove.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/utilities.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/SOURCES.txt +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/dependency_links.txt +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/entry_points.txt +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/requires.txt +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/top_level.txt +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_cli.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_e2e.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_llm_soup.py +0 -0
- {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_utilities.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: thinking-machine
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.24
|
|
4
4
|
Summary: A Machine that thinks.
|
|
5
5
|
Author-email: Machina Ratiocinatrix <machina.ratio@gmail.com>, Alexander Fedotov <alex.fedotov@aol.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/machina-ratiocinatrix/thinking-machine
|
|
@@ -24,8 +24,9 @@ def respond(messages=None, instructions=None, **kwargs):
|
|
|
24
24
|
"Content-Type": "application/json",
|
|
25
25
|
"Authorization": f"Bearer {api_key}",
|
|
26
26
|
"X-Api-Key": api_key,
|
|
27
|
+
"X-CI-Model-Lock": True,
|
|
27
28
|
"Anthropic-Version": "2023-06-01",
|
|
28
|
-
"User-Agent": "
|
|
29
|
+
"User-Agent": "Name-of-the-Machine"
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
# Receive the instruction
|
|
@@ -41,7 +42,7 @@ def respond(messages=None, instructions=None, **kwargs):
|
|
|
41
42
|
"model": kwargs.get("model", default_model),
|
|
42
43
|
"messages": instruction_and_contents,
|
|
43
44
|
"max_tokens": kwargs.get("max_tokens", 132000),
|
|
44
|
-
"reasoning_effort": "
|
|
45
|
+
"reasoning_effort": kwargs.get("reasoning_effort", "high"),
|
|
45
46
|
}
|
|
46
47
|
# Convert
|
|
47
48
|
data_bytes = json.dumps(payload).encode('utf-8')
|
|
@@ -70,11 +71,11 @@ def respond(messages=None, instructions=None, **kwargs):
|
|
|
70
71
|
print(f"Failed to reach the server: {e.reason}")
|
|
71
72
|
output = {}
|
|
72
73
|
# Discern what we got
|
|
73
|
-
|
|
74
|
-
if
|
|
75
|
-
|
|
76
|
-
thoughts =
|
|
77
|
-
text =
|
|
74
|
+
choice = output.get('choices', [])
|
|
75
|
+
if choice:
|
|
76
|
+
message = choice[0]['message']
|
|
77
|
+
thoughts = message.get('reasoning') or message('reasoning_content') or ''
|
|
78
|
+
text = message.get('content', '')
|
|
78
79
|
else:
|
|
79
80
|
thoughts = ''
|
|
80
81
|
text = ''
|
|
@@ -40,7 +40,7 @@ def respond(messages=None, instructions=None, **kwargs):
|
|
|
40
40
|
'messages': instruction_and_contents,
|
|
41
41
|
# 'response_format': kwargs.get('response_format',{'type': 'text'}),
|
|
42
42
|
'temperature': kwargs.get('temperature', 1.0), # 0.0 to 2.0
|
|
43
|
-
'max_tokens': kwargs.get('max_tokens',
|
|
43
|
+
'max_tokens': kwargs.get('max_tokens', 128000),
|
|
44
44
|
'top_p': kwargs.get('top_p', 0.9),
|
|
45
45
|
'separate_reasoning': True,
|
|
46
46
|
'reasoning_effort': kwargs.get('reasoning_effort', 'high'), # 'low', 'medium', 'high'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: thinking-machine
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.24
|
|
4
4
|
Summary: A Machine that thinks.
|
|
5
5
|
Author-email: Machina Ratiocinatrix <machina.ratio@gmail.com>, Alexander Fedotov <alex.fedotov@aol.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/machina-ratiocinatrix/thinking-machine
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/camelids.py
RENAMED
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/castor_pollux.py
RENAMED
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/depsek.py
RENAMED
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/electroid.py
RENAMED
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/illuminati.py
RENAMED
|
File without changes
|
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/openai.py
RENAMED
|
File without changes
|
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/strangelove.py
RENAMED
|
File without changes
|
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/requires.txt
RENAMED
|
File without changes
|
{thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|