compose 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/models.yml +12 -3
- data/lib/compose/ai_client.rb +1 -1
- data/lib/compose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a93094c8eac53d372e048ef799fecec21d64524d51495c499a8ffc698937c4
|
4
|
+
data.tar.gz: cc9065ce8b84f9f87cfbcb3e8afe8e6838e82c93befb1f22aa1862fa5cf6860d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8f3e1f17616ab24496ffe3145b94734fd2dc1e308ae094da06c0cc91264e68c7f14bc8ae4a66af706671ac344f467a687ae24136c7f70eca2e77c8915e2605b
|
7
|
+
data.tar.gz: ab6cd8de7547963b3686c8f16dc654a31bcbf3f93f59a05dd2d019c4930531dbe91aa13ca60a73f6f0a01e70042cf966653cc6a0c92778b6471b611880a30b59
|
data/config/models.yml
CHANGED
@@ -1,19 +1,28 @@
|
|
1
1
|
models:
|
2
|
-
- name: claude-3-5-sonnet-
|
2
|
+
- name: claude-3-5-sonnet-latest
|
3
3
|
provider: anthropic
|
4
4
|
nickname: sonnet35
|
5
5
|
output_cpm: 15
|
6
6
|
input_cpm: 3
|
7
|
-
|
7
|
+
max_tokens: 8092
|
8
8
|
context_window: 200000
|
9
9
|
verify_model: false
|
10
10
|
|
11
|
+
- name: o1-mini-2024-09-12
|
12
|
+
provider: openai
|
13
|
+
nickname: o1mini
|
14
|
+
output_cpm: 12
|
15
|
+
input_cpm: 3
|
16
|
+
max_tokens: 65536
|
17
|
+
context_window: 128000
|
18
|
+
verify_model: false
|
19
|
+
|
11
20
|
- name: gpt-4o-mini
|
12
21
|
provider: openai
|
13
22
|
nickname: 4omini
|
14
23
|
output_cpm: 0.6
|
15
24
|
input_cpm: 0.15
|
16
|
-
|
25
|
+
max_tokens: 16384
|
17
26
|
context_window: 128000
|
18
27
|
verify_model: true
|
19
28
|
|
data/lib/compose/ai_client.rb
CHANGED
@@ -35,7 +35,7 @@ module Compose
|
|
35
35
|
system: system_prompt,
|
36
36
|
messages: [{ role: 'user', content: user_prompt }],
|
37
37
|
temperature: temperature,
|
38
|
-
max_tokens: @model[:
|
38
|
+
max_tokens: @model[:max_tokens],
|
39
39
|
stream: Proc.new { |chunk| token_count += 1; Whirly.status = "Received #{token_count} chunks" }
|
40
40
|
}
|
41
41
|
)
|
data/lib/compose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dreaming Tulpa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-openai
|