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.
Files changed (36) hide show
  1. {thinking_machine-0.1.22/src/thinking_machine.egg-info → thinking_machine-0.1.24}/PKG-INFO +1 -1
  2. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/pyproject.toml +1 -1
  3. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/chinf.py +8 -7
  4. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/tink.py +1 -1
  5. {thinking_machine-0.1.22 → thinking_machine-0.1.24/src/thinking_machine.egg-info}/PKG-INFO +1 -1
  6. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/LICENSE +0 -0
  7. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/MANIFEST.in +0 -0
  8. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/README.md +0 -0
  9. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/setup.cfg +0 -0
  10. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/__init__.py +0 -0
  11. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/cli.py +0 -0
  12. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/config.py +0 -0
  13. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/githf.py +0 -0
  14. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/machina.yaml +0 -0
  15. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/machine.py +0 -0
  16. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/__init__.py +0 -0
  17. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/basta.py +0 -0
  18. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/camelids.py +0 -0
  19. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/castor_pollux.py +0 -0
  20. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/depsek.py +0 -0
  21. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/electroid.py +0 -0
  22. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/illuminati.py +0 -0
  23. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/light.py +0 -0
  24. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/openai.py +0 -0
  25. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/qrog.py +0 -0
  26. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/providers/strangelove.py +0 -0
  27. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine/utilities.py +0 -0
  28. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/SOURCES.txt +0 -0
  29. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/dependency_links.txt +0 -0
  30. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/entry_points.txt +0 -0
  31. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/requires.txt +0 -0
  32. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/src/thinking_machine.egg-info/top_level.txt +0 -0
  33. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_cli.py +0 -0
  34. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_e2e.py +0 -0
  35. {thinking_machine-0.1.22 → thinking_machine-0.1.24}/tests/test_llm_soup.py +0 -0
  36. {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.22
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "thinking-machine"
7
- version = "0.1.22"
7
+ version = "0.1.24"
8
8
  authors = [
9
9
  {name="Machina Ratiocinatrix", email="machina.ratio@gmail.com"},
10
10
  {name="Alexander Fedotov", email="alex.fedotov@aol.com"}
@@ -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": "chinf"
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": "max",
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
- result = output.get('choices', {})
74
- if result:
75
- completion_message = result[0]['message']
76
- thoughts = completion_message.get('reasoning', '')
77
- text = completion_message.get('content', '')
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', 64000),
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.22
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