lex-llm-openai 0.3.9 → 0.3.10
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/legion/extensions/llm/openai/provider.rb +7 -3
- data/lib/legion/extensions/llm/openai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35f7b923651392686a2c504e6ec30249ee8efa6c3f51c7171e18a11d124bc1d8
|
|
4
|
+
data.tar.gz: 7bc891da29aee08bb0bfa4600cd7cea7f0562703b210774d67b543682715143a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2efc2485c6e46d476c654cab015262030455c366546a649011e16be3fc4e0613d1d46d45ff5122d68a7335612bda14c9cebee0cff37012bfce7ee2df1a35687f
|
|
7
|
+
data.tar.gz: 72c4c111bf0c447e0e8646067508382e52524de22f66381824f143f8717edbadf17d424ff12c4935c773e670d8a46aa8e0a2a2c5307f648fbc33ebeaf2b230d8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.10 - 2026-05-21
|
|
4
|
+
|
|
5
|
+
- api_base reads from settings[:endpoint] fallback
|
|
6
|
+
- Identity headers included via base provider
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
## 0.3.9 - 2026-05-13
|
|
4
10
|
|
|
5
11
|
- Change `default_model` from `gpt-4o` to `gpt-5.5` in provider default settings and instance discovery fallback.
|
|
@@ -161,16 +161,20 @@ module Legion
|
|
|
161
161
|
|
|
162
162
|
def stream_usage_supported? = true
|
|
163
163
|
|
|
164
|
+
def settings
|
|
165
|
+
Openai.default_settings
|
|
166
|
+
end
|
|
167
|
+
|
|
164
168
|
def api_base
|
|
165
|
-
config.openai_api_base || 'https://api.openai.com'
|
|
169
|
+
config.openai_api_base || settings[:endpoint] || 'https://api.openai.com'
|
|
166
170
|
end
|
|
167
171
|
|
|
168
172
|
def headers
|
|
169
|
-
{
|
|
173
|
+
identity_headers.merge({
|
|
170
174
|
'Authorization' => "Bearer #{config.openai_api_key}",
|
|
171
175
|
'OpenAI-Organization' => config.openai_organization_id,
|
|
172
176
|
'OpenAI-Project' => config.openai_project_id
|
|
173
|
-
}.compact
|
|
177
|
+
}.compact)
|
|
174
178
|
end
|
|
175
179
|
|
|
176
180
|
def chat_url = completion_url
|