Skip to content

Lỗi khi ra lệnh in chữ Hello màu đỏ #1

Description

@damphat

Có vẻ gemini đã nhận được ký tự \x1b trong stdout và xem đó là một lỗi, sau đó gemini liên tục sinh ra các run_shell với các phương án khác nhau để thử lại.

  • chuyển nó thành \e, \033, \x1b, \u001b ?

💭 tại sao LLM không hiểu được "\u001b" khi dùng google-genai? nó tokenize thế nào, khi gặp ký tự này? Đã thử và thấy tokenize đúng, nhưng LLM phản ứng tiêu cực hơn so với "\"+"e" hoặc "\"+"x1b"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions