kaba 0.2.0 → 0.2.1

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: 3add323686f57e3e0552468bcbe17287aadbeffaa2454378bb9ee334dd0a142b
4
- data.tar.gz: 5aa4f3d631a0f547b9ab0745e27c1d12b1877eb413b2a05642634f94fb7dea1d
3
+ metadata.gz: 73fe981d3fc1a765b78b603f5f04ee8cd23514cc620f601e437363b158362d8b
4
+ data.tar.gz: bac9dcf38f519286ac2d9d1fd2b24ff3f1c2dabf3a0c85a93b761394f6d13db8
5
5
  SHA512:
6
- metadata.gz: 2be265488852253a51cd68f4268db8c7e774460e32f0802ebf4deae1bdb00557a324dd5bb80f57738d9a24ed56b7d92acba6905b8aad60eac1c87cd2d4410cc1
7
- data.tar.gz: 8df40bd780cc37ed567cbc7fb93374c4e81d6ded7e805bddae9e1667b3cfe34ddb155ebd41c9865f8146959a17d1bb14e0f48de6d207f6a95aa47d3c930ac8f9
6
+ metadata.gz: 5f60669e92bc3851fe7c481d2271d64cca8cfc1c1e67ffeb2e6ce24c0749171366360b330cfa7e9453e1a30876fbfcdc2c41cd42ef5de97a1a3a31e1000d4f35
7
+ data.tar.gz: 2139393a5569187cb8d7b5a32d9a641b33f26b93ac0c8b799ac991aad2db965db8d755d23850895af16f95c15518a8b9f6ca58df6d16e1497763c58d0498a071
data/.dockerignore CHANGED
@@ -1,2 +1,3 @@
1
1
  DPodfile
2
- /data
2
+ /data
3
+ .env
data/README.md CHANGED
@@ -17,11 +17,17 @@ alias kaba='docker run -it --rm -v "${PWD}:/workdir" ghcr.io/mjason/kaba:latest'
17
17
  ```
18
18
 
19
19
  ## 目录结构说明
20
-
21
- ## 目录结构
20
+ 你的项目目录必须有 data 目录
22
21
  - data
23
22
  - row
23
+ - *.target.json
24
+ - *.input.txt
24
25
  - schema
26
+ - *.ts
27
+
28
+ `*`代表文件名,随你喜欢,一般推荐用数字即可,schema 怎么定义直接看 typechat 文档就好了。
25
29
 
26
- ## 项目依赖
30
+ ## 关联项目
31
+ - [lisa_typechat_server](https://github.com/mjason/lisa_typechat_server)
27
32
 
33
+ 如果要修改服务地址你有两个方式,一个通过 `.env` 来处理,还有就是自己设置环境变量,变量名 `LISA_TYPECHAT_ENDPOINT`
data/exe/kaba CHANGED
@@ -16,7 +16,7 @@ Dotenv.load
16
16
  class Application
17
17
  class << self
18
18
  def connection
19
- endpoint = ENV["LISA_TYPECHAT_ENDPOINT"] || "No endpoint"
19
+ endpoint = ENV["LISA_TYPECHAT_ENDPOINT"] || "https://lisa-typechat.listenai.com"
20
20
  @connection ||= Faraday.new(endpoint) do |faraday|
21
21
  faraday.adapter :async_http, clients: Async::HTTP::Faraday::PersistentClients
22
22
  faraday.request :json
data/lib/kaba/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kaba
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ