Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split subcommand #14

Closed
tkawachi opened this issue Mar 11, 2023 · 3 comments
Closed

split subcommand #14

tkawachi opened this issue Mar 11, 2023 · 3 comments

Comments

@tkawachi
Copy link
Owner

No description provided.

@tkawachi
Copy link
Owner Author

案1: --split をつける

aichat --split command1

入力できるサイズに切り分けて、それぞれ prompt に入力し、出力を出す。

案2: split は別コマンド

cat foo.txt | aichat split | xargs -0 aichat command1

標準入力からしか読めないと使い勝手悪そう。

@tkawachi
Copy link
Owner Author

fold もできるようにしたい

@tkawachi
Copy link
Owner Author

fold なので、最初の part 用の prompt と、2つ目以降の part 用の prompt を分けて設定したい。

例えばこんな感じ?

first:
  messages:
    - role: system
      content: aaaa
    - role: user
      content: $INPUT
subsequent:
  messages:
    - role: system
      content: aaaa $OUTPUT
    - role: user
      content:  $INPUT

$OUTPUT には前のpartを処理した出力が入る。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant