samagotchi 0.94.0 → 0.95.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +38 -1
- data/README.md +7 -7
- data/bin/chi +6 -2
- data/docs/architecture.md +4 -5
- data/docs/cli.md +3 -3
- data/docs/configuration.md +49 -86
- data/docs/hooks.md +1 -1
- data/docs/internals/context-telemetry.md +1 -1
- data/docs/internals/engine.md +7 -4
- data/docs/testing.md +6 -9
- data/lib/samagotchi/bootstrap/config_writer.rb +1 -5
- data/lib/samagotchi/bundle_command/try/sandbox.rb +8 -2
- data/lib/samagotchi/bundles/system/config_modification_protocol.md +6 -7
- data/lib/samagotchi/bundles/system/manifest.yml +3 -3
- data/lib/samagotchi/bundles/system/self_map.md +1 -1
- data/lib/samagotchi/client.rb +59 -196
- data/lib/samagotchi/config.rb +74 -15
- data/lib/samagotchi/engine.rb +7 -7
- data/lib/samagotchi/host_config.rb +20 -27
- data/lib/samagotchi/host_registry.rb +8 -8
- data/lib/samagotchi/kernel_loop.rb +46 -8
- data/lib/samagotchi/model_profile.rb +2 -3
- data/lib/samagotchi/self_report.rb +0 -2
- data/lib/samagotchi/system_prompt.rb +7 -21
- data/lib/samagotchi/terminal_ui/thinking_line.rb +2 -4
- data/lib/samagotchi/thinking.rb +35 -2
- data/lib/samagotchi/thinking_notices.rb +11 -4
- data/lib/samagotchi/version.rb +1 -1
- data/lib/samagotchi/vision_support.rb +0 -3
- metadata +1 -1
|
@@ -102,16 +102,23 @@ module Samagotchi
|
|
|
102
102
|
private
|
|
103
103
|
|
|
104
104
|
# An effort on a native host, which has no knob for it: said once per
|
|
105
|
-
# session and host.
|
|
105
|
+
# session and host. A qwen36 whose server template opens a thought
|
|
106
|
+
# (Thinking.opens_thought?, from the /props answer the profile probe
|
|
107
|
+
# cached) thinks at every effort, the same.
|
|
106
108
|
def announce_level(level, target)
|
|
107
109
|
return if target.entry.chat?
|
|
108
110
|
|
|
109
111
|
profile = @profile.call
|
|
110
112
|
return if Thinking.native(level, profile).honoured
|
|
111
113
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
text = if profile&.name == "qwen36" && Thinking.opens_thought?(target.client&.cached_server_props(model: target.bare_model))
|
|
115
|
+
"#{level} isn't supported by native #{profile.name} on #{target.entry.name}; " \
|
|
116
|
+
"it thinks, with no effort control (low, medium and high think the same)"
|
|
117
|
+
else
|
|
118
|
+
"#{level} isn't supported by native #{profile.name} on #{target.entry.name}; " \
|
|
119
|
+
"thinking stays as the model has it"
|
|
120
|
+
end
|
|
121
|
+
notice_once(:unsupported, target, :info, text)
|
|
115
122
|
rescue StandardError => e
|
|
116
123
|
failed(:announce_level, e)
|
|
117
124
|
end
|
data/lib/samagotchi/version.rb
CHANGED
|
@@ -61,9 +61,6 @@ module Samagotchi
|
|
|
61
61
|
|
|
62
62
|
def self.native(target, _entry, profile, trust_config:)
|
|
63
63
|
client = target.client
|
|
64
|
-
transport = client.transport.name
|
|
65
|
-
return no("#{transport} hosts take no images (only llama.cpp does)") unless transport == :llama_cpp
|
|
66
|
-
|
|
67
64
|
props = client.server_props(model: target.bare_model)
|
|
68
65
|
return no("can't reach /props for the media marker") unless props&.answered?
|
|
69
66
|
|