copilot2gpt 0.1.2 → 0.1.3

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: da23dae0f4ea1932a9cfc08fb8fe479be3ef082bf505354d606506e3b27511b2
4
- data.tar.gz: eca989b27b347b678a1f8013ac2ee18228c6e2acfef33f79e588ca68014c473d
3
+ metadata.gz: 1cd06e36746634eea9005c12da34d2ac1855a1cebd142d5fe1cadc7d040e8590
4
+ data.tar.gz: 46bb9ce07b9acc1a0d646bbed04c7237744b79619ea972b16a4f57ff02d413b9
5
5
  SHA512:
6
- metadata.gz: 2ea78b0aa79bd8cf5cb0d7297c9cfaabf58c4b4960fcf6ee96435df4e87c9c9b9e1a920c5f027c7fde0b4a6aa91f8b14c896c957d326ca8f59e5c0c84095c4b7
7
- data.tar.gz: be6ec3f22729aea3d15ad35065b2612ceea3017021ba0c7c7e5385eae382200599847a836b9002878ca7938fd6edc2097e85a7d22abfce95c9704baad2acd1ec
6
+ metadata.gz: 8046def1becd09131b1c4bcf5c5495fbd1747b4c76a37c9dc878f5ce098c0174eb63380ad1d0130dbe452c209371a55d3bb6d69c6a5feb60e636c7a398d74515
7
+ data.tar.gz: 97c07fe05da168d34586d019e31f2ea2a5798883e0f880a7dd8e18c588f00a0747939b043b31f91e6fb758209091ca23735d883b6bb34f35c480597072daa4ee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copilot2gpt (0.1.2)
4
+ copilot2gpt (0.1.3)
5
5
  activesupport (~> 7.0.0)
6
6
  faraday (~> 2.8.1)
7
7
  puma (~> 6.3.0)
@@ -43,6 +43,11 @@ module Copilot2GPT
43
43
  complete(JSON.parse(request.body.read, symbolize_names: true).merge(stream: false))
44
44
  end
45
45
 
46
+ post('/openai/no-stream/chat/completions') do
47
+ @mock_ai_gateway = true
48
+ complete(JSON.parse(request.body.read, symbolize_names: true).merge(stream: false))
49
+ end
50
+
46
51
  def complete(args)
47
52
  github_token = request.env['HTTP_AUTHORIZATION'].to_s.sub('Bearer ', '')
48
53
  if github_token.empty?
@@ -148,4 +153,4 @@ module Copilot2GPT
148
153
 
149
154
  run!
150
155
  end
151
- end
156
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Copilot2gpt
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copilot2gpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-30 00:00:00.000000000 Z
11
+ date: 2024-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra