@coder-ka/ollama-as-webapi 1.0.0 → 1.0.1
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/README.md +5 -0
- package/dist/cli.js +2 -1
- package/package.json +3 -2
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import { Command } from 'commander';
|
|
2
3
|
import { startServer } from './server.js';
|
|
3
4
|
import { pullModelIfNeeded } from './ollama.js';
|
|
@@ -5,7 +6,7 @@ const program = new Command();
|
|
|
5
6
|
program
|
|
6
7
|
.name('ollama-as-webapi')
|
|
7
8
|
.description('Serve Ollama models as a Web API')
|
|
8
|
-
.version('1.0.
|
|
9
|
+
.version('1.0.1');
|
|
9
10
|
program
|
|
10
11
|
.option('--model <name>', 'Model name', 'gemma3:4b')
|
|
11
12
|
.option('--port <number>', 'Port number', '3000')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coder-ka/ollama-as-webapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "This repository provides a simple CLI tool to serve Ollama models as a Web API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"build": "tsc",
|
|
11
11
|
"start": "node dist/cli.js",
|
|
12
12
|
"dev": "tsx src/cli.ts",
|
|
13
|
-
"prepublishOnly": "npm run build"
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
|
+
"test:api": "tsx scripts/test-api.ts"
|
|
14
15
|
},
|
|
15
16
|
"author": "Katsuyuki Oeda",
|
|
16
17
|
"license": "MIT",
|