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

Add chinese support for promot.(In .env, let 'LANGUAGE=cn') #927

Closed
wants to merge 1 commit into from

Conversation

zkewind
Copy link

@zkewind zkewind commented May 16, 2024

Add chinese support for promot.(In .env file, let 'LANGUAGE=cn')

@zkewind zkewind marked this pull request as draft May 27, 2024 06:19
@zkewind zkewind marked this pull request as ready for review May 28, 2024 09:36
@senko
Copy link
Collaborator

senko commented Jun 4, 2024

Hi @zkewind,

since we've released 0.2, we won't be be merging older PRs to 0.1, but we've added an option to add additional directories for searching prompt files, by adding this to config.json:

  "prompt": {
    "paths": [
      "/path/to/your/custom/prompts",
      "/path/to/gpt-pilot/core/prompts"
    ]
  }

Then, when the prompts are loaded, they will first be looked into the subdirectories of your custom prompts. If not found, the lookup will go to the default (second) directory. This means you can override those that you need, and this can be for a new language, or if you want to adapt them for a specific LLM, etc...

Although the structure and template tags are changed a bit, the prompts themselves are mostly the same, so hopefully it'll be asier to adapt the prompts to the new version.

@senko senko closed this Jun 4, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants