llmed 0.3.12 → 0.3.14
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/README.md +15 -9
- data/lib/llm.rb +3 -0
- data/lib/llmed/application.rb +1 -0
- 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: 485aa021e818c5cc74716df4f669e06f6a711be804ad1666a6084f0036441cd3
|
4
|
+
data.tar.gz: 33483d05a483a45bda88e549b3811dc0576527a11f681b9ff7b5c0f01242d945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a61cdcc702a428e6cdf6d3d1b9576236dff9b7239484aaaaf5806b8b29a3e6303244868748607ce1ba5f0807e63348c220d95fbb63fe7880ecc73ee23d3b0d0
|
7
|
+
data.tar.gz: 5e3c6ed4de279a33e73d268b144d0febb38fc1679f4954ec0d75df356a0e663a7f82b3a84a9ec93ca6500d94936a7f5209b2dc515a1952a6faec8e274745c721
|
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: :
|
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 "
|
20
|
-
#
|
21
|
-
context "
|
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
|
-
|
23
|
+
* Must use only the standard/native library.
|
24
|
+
* Must not use external dependencies.
|
24
25
|
LLM
|
25
26
|
end
|
26
27
|
|
27
|
-
#
|
28
|
-
context "
|
28
|
+
# Most inestable context: if this changes, only this context will be recompiled.
|
29
|
+
context "API" do
|
29
30
|
<<-LLM
|
30
|
-
|
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
data/lib/llmed/application.rb
CHANGED
@@ -68,6 +68,7 @@ class LLMed
|
|
68
68
|
FileUtils.cp(output_file, release_main_source_code)
|
69
69
|
@logger.info("APPLICATION #{@name} RELEASE FILE #{release_source_code}")
|
70
70
|
elsif @release && !File.exist?(output_file) && File.exist?(release_main_source_code)
|
71
|
+
FileUtils.mkdir_p(File.dirname(output_file))
|
71
72
|
FileUtils.cp(release_main_source_code, output_file)
|
72
73
|
return
|
73
74
|
end
|
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.
|
4
|
+
version: 0.3.14
|
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-
|
11
|
+
date: 2025-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: langchainrb
|