completion-kit 0.5.5 → 0.5.7

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.
@@ -1,3 +1,3 @@
1
1
  module CompletionKit
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.7"
3
3
  end
@@ -9,6 +9,7 @@ module CompletionKit
9
9
  attr_accessor :judge_model, :high_quality_threshold, :medium_quality_threshold
10
10
  attr_accessor :username, :password, :auth_strategy, :api_token
11
11
  attr_accessor :tenant_scope, :tenant_scope_columns
12
+ attr_accessor :api_reference_authentication_partial
12
13
 
13
14
  def initialize
14
15
  @openai_api_key = ENV['OPENAI_API_KEY']
@@ -19,6 +20,8 @@ module CompletionKit
19
20
  @judge_model = "gpt-4.1"
20
21
  @high_quality_threshold = 4
21
22
  @medium_quality_threshold = 3
23
+
24
+ @api_reference_authentication_partial = "completion_kit/api_reference/authentication"
22
25
  end
23
26
 
24
27
  def tenant_scope_columns
@@ -37,6 +37,10 @@ CompletionKit.configure do |config|
37
37
  # API Authentication
38
38
  # config.api_token = ENV['COMPLETION_KIT_API_TOKEN']
39
39
 
40
+ # API reference page: swap in your own Authentication card (e.g. a multi-tenant
41
+ # token-management panel). The partial receives a `token:` local.
42
+ # config.api_reference_authentication_partial = "my_app/api_token_panel"
43
+
40
44
  # Web UI Authentication
41
45
  # config.username = "admin"
42
46
  # config.password = ENV['COMPLETION_KIT_PASSWORD']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Bastin
@@ -300,6 +300,8 @@ files:
300
300
  - app/services/completion_kit/prompt_improvement_service.rb
301
301
  - app/services/completion_kit/worker_health.rb
302
302
  - app/validators/completion_kit/tenant_scoped_uniqueness_validator.rb
303
+ - app/views/completion_kit/api_reference/_authentication.html.erb
304
+ - app/views/completion_kit/api_reference/_body.html.erb
303
305
  - app/views/completion_kit/api_reference/_example.html.erb
304
306
  - app/views/completion_kit/api_reference/index.html.erb
305
307
  - app/views/completion_kit/datasets/_form.html.erb