add openai

This commit is contained in:
2025-05-21 20:40:27 +09:00
parent f94b377130
commit 1122538c73
5 changed files with 151 additions and 22 deletions

View File

@ -27,7 +27,13 @@ $ ollama run syui/ai
```sh
$ cargo build
$ ./target/debug/aigpt mcp setup
$ ./target/debug/aigpt mcp chat "hello world!" --host http://localhost:11434 --model syui/ai
$ ./aigpt mcp setup
$ ./aigpt mcp chat "hello world!"
$ ./aigpt mcp chat "hello world!" --host http://localhost:11434 --model syui/ai
---
# openai api
$ ./aigpt mcp set-api -api sk-abc123
$ ./aigpt mcp chat "こんにちは" -p openai -m gpt-4o-mini
```