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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/copilot2gpt/app.rb +6 -1
- data/lib/copilot2gpt/version.rb +1 -1
- 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: 1cd06e36746634eea9005c12da34d2ac1855a1cebd142d5fe1cadc7d040e8590
|
4
|
+
data.tar.gz: 46bb9ce07b9acc1a0d646bbed04c7237744b79619ea972b16a4f57ff02d413b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8046def1becd09131b1c4bcf5c5495fbd1747b4c76a37c9dc878f5ce098c0174eb63380ad1d0130dbe452c209371a55d3bb6d69c6a5feb60e636c7a398d74515
|
7
|
+
data.tar.gz: 97c07fe05da168d34586d019e31f2ea2a5798883e0f880a7dd8e18c588f00a0747939b043b31f91e6fb758209091ca23735d883b6bb34f35c480597072daa4ee
|
data/Gemfile.lock
CHANGED
data/lib/copilot2gpt/app.rb
CHANGED
@@ -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
|
data/lib/copilot2gpt/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|