@xelauvas/xela-cli 0.1.4 → 0.1.5
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.
- package/package.json +1 -1
- package/src/utils/model/model.ts +5 -0
package/package.json
CHANGED
package/src/utils/model/model.ts
CHANGED
|
@@ -192,6 +192,11 @@ export function getRuntimeMainLoopModel(params: {
|
|
|
192
192
|
* @returns The default model setting to use
|
|
193
193
|
*/
|
|
194
194
|
export function getDefaultMainLoopModelSetting(): ModelName | ModelAlias {
|
|
195
|
+
// OpenAI-compatible backend: use OPENAI_MODEL
|
|
196
|
+
if (process.env.OPENAI_API_KEY) {
|
|
197
|
+
return process.env.OPENAI_MODEL || 'gpt-4o'
|
|
198
|
+
}
|
|
199
|
+
|
|
195
200
|
// Ants default to defaultModel from flag config, or Opus 1M if not configured
|
|
196
201
|
if (process.env.USER_TYPE === 'ant') {
|
|
197
202
|
return (
|