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.
@@ -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
- notice_once(:unsupported, target, :info,
113
- "#{level} isn't supported by native #{profile.name} on #{target.entry.name}; " \
114
- "thinking stays as the model has it")
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Samagotchi
4
- VERSION = "0.94.0"
4
+ VERSION = "0.95.0"
5
5
  # Sent as the User-Agent of every HTTP request chi makes.
6
6
  USER_AGENT = "chi/#{VERSION}"
7
7
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samagotchi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.94.0
4
+ version: 0.95.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Dedov