monacopilot 0.12.8 → 0.12.9

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.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -70,7 +70,10 @@ import {Copilot} from 'monacopilot';
70
70
 
71
71
  const app = express();
72
72
  const port = process.env.PORT || 3000;
73
- const copilot = new Copilot(process.env.GROQ_API_KEY);
73
+ const copilot = new Copilot(process.env.GROQ_API_KEY!, {
74
+ provider: 'groq',
75
+ model: 'llama-3-70b',
76
+ });
74
77
 
75
78
  app.use(express.json());
76
79
 
@@ -407,6 +410,8 @@ const copilot = new Copilot(process.env.OPENAI_API_KEY, {
407
410
 
408
411
  The default provider is `groq`, and the default model is `llama-3-70b`.
409
412
 
413
+ > **Tip:** Always specify a provider and model when using Monacopilot. This ensures your code remains consistent even if the default settings change in future updates.
414
+
410
415
  There are other providers and models available. Here is a list:
411
416
 
412
417
  | Provider | Models |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monacopilot",
3
- "version": "0.12.8",
3
+ "version": "0.12.9",
4
4
  "description": "AI auto-completion plugin for Monaco Editor",
5
5
  "main": "./build/index.js",
6
6
  "module": "./build/index.mjs",