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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 050edb82f3b985eefdea7e2b791019968f7e8f13770a07652e12e0f273e159db
4
- data.tar.gz: 8bce91cfa68da8141cca2ce29a8e9ab25be1051e5d72b93c6376a77bd84f222d
3
+ metadata.gz: d4a93094c8eac53d372e048ef799fecec21d64524d51495c499a8ffc698937c4
4
+ data.tar.gz: cc9065ce8b84f9f87cfbcb3e8afe8e6838e82c93befb1f22aa1862fa5cf6860d
5
5
  SHA512:
6
- metadata.gz: 9e07206841afc24ee8daa040c5f11183198072f0e98913da0c5a1ac3d4605b14daf2ee130f93443eeb2f3fc6e7191021ccb1114210471d62353c5011de1fd8de
7
- data.tar.gz: e0406eb23a9d5368cd9bc527237c152308716839afe9e649f3837434988dc07f246bbfd06281cbbfc0b62da7b98d2e3944af1783a181487b5c5c10935a967013
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-20240620
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
- output_length: 8092
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
- output_length: 16384
25
+ max_tokens: 16384
17
26
  context_window: 128000
18
27
  verify_model: true
19
28
 
@@ -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[:output_length],
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
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Compose
4
- VERSION = '0.1.8'
4
+ VERSION = '0.1.9'
5
5
  end
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.8
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-09-12 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai