luo 0.1.20 → 0.1.21

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: 8704c313023d8ec033957282a0585bdbeeb51d9f76a7fe5415b48dbfff412c75
4
- data.tar.gz: 847d8309389a0f8de711bb674014b45942c64a3719a027009a309a7ca741ef63
3
+ metadata.gz: 0f0041ac90d5a47bfaa129bc877e38a350e0bdf757a6ea8d1da945ec2af83864
4
+ data.tar.gz: fafb2c21415dbe6a5fbcf1ab21477e9ef580b3122ea35c3f333d2bb1a370555b
5
5
  SHA512:
6
- metadata.gz: 240f45ee887a39ed426da4288ac259b4666a714dfa9c725417ba2b7ffe877f8bce2f58205c93847d64babcec8f59f8c2ea571a14c2a6736bc7731b9620bec788
7
- data.tar.gz: d6fd03c0f45a0e406ff4861d4aef98d669fede266960620da40886f3c25fd95ba1d97cf80b9a00a95018e1e9cffec2cd9b50f8b0296c8858fe5d5be945cfcf58
6
+ metadata.gz: db9272f29f87859e3c364240b7ec586966ffe230ae951c56d6457f64c929e1eedacd4176cde01c6fc33489bea169bad26756d39640802ce41441c86629e02db5
7
+ data.tar.gz: 6b279cdfb131e7042ec94ea9b12f09c7bf3012ad782d0cd8a84b98ec197470ef78bb03776c046f3ab54d7f6382cd4e5a3825288224ef6f80fc9ac8dd720a16b8
data/README.zh.md CHANGED
@@ -3,19 +3,20 @@
3
3
 
4
4
  ## 安装
5
5
 
6
- ###
6
+ ### ruby 原生(不推荐)
7
7
  ```
8
8
  gem install luo
9
9
  ```
10
10
 
11
- ###
12
- 把下面这行代码添加到 ~/.zshrc 或者 ~/.bashrc 中
11
+ ### docker (推荐)
12
+ 1. 安装docker
13
13
 
14
14
  ```
15
- alias luo='docker run --rm -it -v "$PWD:/workdir" ghcr.io/mjason/luo:latest'
15
+ docker pull ghcr.io/mjason/luo:latest
16
+ # 把下面这句话添加到 ~/.bashrc 或者 ~/.zshrc
17
+ alias luo='docker run --rm -it -p 8888:8888 -v "$PWD:/workdir" ghcr.io/mjason/luo:latest'
16
18
  ```
17
19
 
18
-
19
20
  ## 环境变量说明
20
21
  ```Bash
21
22
  OPENAI_ACCESS_TOKEN= # OpenAI的访问令牌
@@ -34,7 +35,7 @@ XINGHUO_ACCESS_TOKEN= # 星火大模型的访问令牌
34
35
  2. cd demo
35
36
  3. luo init
36
37
  4. 修改 .env 的环境变量
37
- 5. ruby application.rb
38
+ 5. luo r
38
39
 
39
40
  ### Messages 说明
40
41
  ```ruby
@@ -15,6 +15,7 @@ module Luo
15
15
  source 'https://rubygems.org'
16
16
  gem 'luo', '~> #{version}'
17
17
  gem 'iruby'
18
+ gem 'pry'
18
19
  GEMFILE
19
20
  File.open('Gemfile', 'w') do |file|
20
21
  file.puts(gemfile)
@@ -7,10 +7,4 @@ require 'luo'
7
7
  include Luo
8
8
 
9
9
  Loader.push_dir(File.join(__dir__, 'agents'))
10
- Loader.setup
11
-
12
- begin
13
- IRuby::Kernel.instance.switch_backend!(:pry)
14
- rescue => e
15
- #
16
- end
10
+ Loader.setup
data/lib/luo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luo
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.21"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ