ask-my-llm 1.1.2 → 1.1.3
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/index.js +13 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -135,4 +135,16 @@ function parseResponse(stdout) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Returns the model name from the current configuration.
|
|
140
|
+
* Synchronous.
|
|
141
|
+
* @param {Object|string} [options] - Same as in ask() / askAsync().
|
|
142
|
+
* @returns {string} Model identifier, e.g. "google/gemma-3-4b-it"
|
|
143
|
+
* @throws {Error} If configuration is missing or invalid.
|
|
144
|
+
*/
|
|
145
|
+
function getModel(options) {
|
|
146
|
+
const config = loadConfig(options);
|
|
147
|
+
return config.model;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
module.exports = { ask, askAsync, getModel };
|