llmed 0.3.12 → 0.3.13

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -9
  3. data/lib/llm.rb +3 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cd0f86146f0b5d3123e0bffdd50f66017b5961c94f3e589236a579157a8db3e
4
- data.tar.gz: 82f083351481d1e14e5cdcf1640027dd032f242c7390e0421f075e1214a2bd95
3
+ metadata.gz: d27122a6a39c8e8b65fcb2904770a1df40607a81fe4fc3509c64852c18166757
4
+ data.tar.gz: a8ad73c893af6e83223d37e0b7942748e5083afcf741ab3845f48f9819949745
5
5
  SHA512:
6
- metadata.gz: 825b0583fe3f59190eef5dd2cd618d38e5b244409d91ca7ce5fe1baef60f19cb9a6acb967aa3b260439fec0d321da552a65b4fc280fb10d537a138eca6315791
7
- data.tar.gz: 44744f6d6c0b24ea109e191461aae86e6a9fa63347e7a90143f41672986befb82809c274441514efcc79323c714abeb5bb154b5f6a274fdb6a6b86d439f6650c
6
+ metadata.gz: 952651684be39c509da0cbfaf4472487b03d19eb312fa2d28a4a22f4e940b5dc9a4d9e22123b52a42105e14d85c42e95dad7c830045d32df0303d43b65fdb0de
7
+ data.tar.gz: 06cff7578b503ede8222a1152653e3e195cd67ac717dbbbcd9f36d793beb1959ba7090757fd857795f4d45688ca8b544d0e3c9cf8e5080f7d733d1f3826a9b83
data/README.md CHANGED
@@ -14,24 +14,30 @@ What would happen if:
14
14
  In classic terms the LLM is the Compiler, Source Code is the Binary, the Programming language is Context Description.
15
15
 
16
16
  ```ruby
17
- set_llm provider: :openai, api_key: ENV['OPENAI_API_KEY'], model: 'gpt-4o-mini'
17
+ set_llm provider: :like_openai, api_key: ENV['TOGETHERAI_API_KEY'], model: 'Qwen/Qwen2.5-Coder-32B-Instruct', options: {uri_base: 'https://api.together.xyz/v1'}
18
18
 
19
- application "hola mundo ruby", release: nil, language: :ruby, output_file: "holamundo-ruby.ollmed" do
20
- # More stable context: if this changes, all subsequent context will be recompiled.
21
- context "variables" do
19
+ application "MINI COUNTER", release: nil, language: :node, output_file: "minicounter.ollmed" do
20
+ # Most stable context: if this changes, all subsequent context will be recompiled.
21
+ context "dependencies" do
22
22
  <<-LLM
23
- Variable saludos de valor 'hola mundo'.
23
+ * Must use only the standard/native library.
24
+ * Must not use external dependencies.
24
25
  LLM
25
26
  end
26
27
 
27
- # More inestable context: if this changes, only this context will be recompiled.
28
- context "main" do
28
+ # Most inestable context: if this changes, only this context will be recompiled.
29
+ context "API" do
29
30
  <<-LLM
30
- Mostrar al usuario la variable saludos.
31
+ API Server listening port 3007.
32
+ Expose the following endpoints:
33
+ - GET /count
34
+ - return the latest count.
35
+ - POST /count
36
+ - increase the count by 1.
37
+ add CORS endpoints.
31
38
  LLM
32
39
  end
33
40
  end
34
- ```
35
41
 
36
42
  ## Programming flow
37
43
 
data/lib/llm.rb CHANGED
@@ -47,6 +47,9 @@ class LLMed
47
47
  end
48
48
 
49
49
  private
50
+ def llm_arguments(args)
51
+ args
52
+ end
50
53
 
51
54
  def provider
52
55
  :openai
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llmed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jovany Leandro G.C
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-06-16 00:00:00.000000000 Z
11
+ date: 2025-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: langchainrb