fix config
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
## 設定ファイルの場所
|
||||
|
||||
ai.gptの設定は `~/.config/aigpt/config.json` に保存されます。
|
||||
ai.gptの設定は `~/.config/syui/ai/gpt/config.json` に保存されます。
|
||||
|
||||
## 設定構造
|
||||
|
||||
@ -33,38 +33,38 @@ ai.gptの設定は `~/.config/aigpt/config.json` に保存されます。
|
||||
|
||||
```bash
|
||||
# APIキーを設定
|
||||
ai-gpt config set providers.openai.api_key sk-xxxxx
|
||||
aigpt config set providers.openai.api_key sk-xxxxx
|
||||
|
||||
# デフォルトモデルを変更
|
||||
ai-gpt config set providers.openai.default_model gpt-4-turbo
|
||||
aigpt config set providers.openai.default_model gpt-4-turbo
|
||||
```
|
||||
|
||||
### Ollama
|
||||
|
||||
```bash
|
||||
# ホストを変更(リモートOllamaサーバーを使用する場合)
|
||||
ai-gpt config set providers.ollama.host http://192.168.1.100:11434
|
||||
aigpt config set providers.ollama.host http://192.168.1.100:11434
|
||||
|
||||
# デフォルトモデルを変更
|
||||
ai-gpt config set providers.ollama.default_model llama2
|
||||
aigpt config set providers.ollama.default_model llama2
|
||||
```
|
||||
|
||||
## atproto設定(将来の自動投稿用)
|
||||
|
||||
```bash
|
||||
# Blueskyアカウント
|
||||
ai-gpt config set atproto.handle yourhandle.bsky.social
|
||||
ai-gpt config set atproto.password your-app-password
|
||||
aigpt config set atproto.handle yourhandle.bsky.social
|
||||
aigpt config set atproto.password your-app-password
|
||||
|
||||
# セルフホストサーバーを使用
|
||||
ai-gpt config set atproto.host https://your-pds.example.com
|
||||
aigpt config set atproto.host https://your-pds.example.com
|
||||
```
|
||||
|
||||
## デフォルトプロバイダー
|
||||
|
||||
```bash
|
||||
# デフォルトをOpenAIに変更
|
||||
ai-gpt config set default_provider openai
|
||||
aigpt config set default_provider openai
|
||||
```
|
||||
|
||||
## セキュリティ
|
||||
@ -74,7 +74,7 @@ ai-gpt config set default_provider openai
|
||||
設定ファイルは平文で保存されるため、適切なファイル権限を設定してください:
|
||||
|
||||
```bash
|
||||
chmod 600 ~/.config/aigpt/config.json
|
||||
chmod 600 ~/.config/syui/ai/gpt/config.json
|
||||
```
|
||||
|
||||
### 環境変数との優先順位
|
||||
@ -92,10 +92,10 @@ chmod 600 ~/.config/aigpt/config.json
|
||||
|
||||
```bash
|
||||
# バックアップ
|
||||
cp ~/.config/aigpt/config.json ~/.config/aigpt/config.json.backup
|
||||
cp ~/.config/syui/ai/gpt/config.json ~/.config/syui/ai/gpt/config.json.backup
|
||||
|
||||
# リストア
|
||||
cp ~/.config/aigpt/config.json.backup ~/.config/aigpt/config.json
|
||||
cp ~/.config/syui/ai/gpt/config.json.backup ~/.config/syui/ai/gpt/config.json
|
||||
```
|
||||
|
||||
## トラブルシューティング
|
||||
@ -104,15 +104,15 @@ cp ~/.config/aigpt/config.json.backup ~/.config/aigpt/config.json
|
||||
|
||||
```bash
|
||||
# 現在の設定を確認
|
||||
ai-gpt config list
|
||||
aigpt config list
|
||||
|
||||
# 特定のキーを確認
|
||||
ai-gpt config get providers.openai.api_key
|
||||
aigpt config get providers.openai.api_key
|
||||
```
|
||||
|
||||
### 設定をリセット
|
||||
|
||||
```bash
|
||||
# 設定ファイルを削除(次回実行時に再作成)
|
||||
rm ~/.config/aigpt/config.json
|
||||
rm ~/.config/syui/ai/gpt/config.json
|
||||
```
|
Reference in New Issue
Block a user