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

feat: Add default prompt via env variable #74

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ahernsean
Copy link

This PR adds support for having chatblade use a default prompt. The default is set via an environment variable. In some ways, it makes chatblade similar to ChatGPT's "custom instructions" that are automatically applied for all new chats.

  • If CHATBLADE_DEFAULT_PROMPT is set in the user's environment, use the prompt set there as if it had been specified on the command line with -p. If the user has "-p prompt" on the command line, use that instead of the environment variable.
  • Bump version number

- If CHATBLADE_DEFAULT_PROMPT is set in the user's environment, use the prompt set there as if it had been specified on the command line with -p.  If the user has "-p prompt" on the command line, use that instead of the environment variable.
- Bump version number
* jacky/main:
  fix: azure deployment name not read
  fix: remove redundant semicolon in query prompt
@ahernsean ahernsean changed the title Add default prompt via env variable New feature: Add default prompt via env variable Feb 12, 2024
@ahernsean ahernsean changed the title New feature: Add default prompt via env variable feat: Add default prompt via env variable Feb 22, 2024
* upstream/main:
  update readme, and token prices
  bump dependencies, add 4o-mini as default
  Update model mappings, add GTP-4o, small README fixes
…an/chatblade into ahernsean-default-prompt

* 'ahernsean-default-prompt' of https://github.com/ahernsean/chatblade:
  add support for openai base url
  bump dependencies
  fix: azure deployment name not read
  fix: remove redundant semicolon in query prompt
* main:
  update readme, and token prices
  bump dependencies, add 4o-mini as default
  Update model mappings, add GTP-4o, small README fixes
* 'main' of https://github.com/ahernsean/chatblade:
  bump version
  Removed formatting on latex comments to prevent % characters from removing lines of text.
  Bump version
  prevent latex formatting from running on code blocks and inline code
  Remove unused dependencies from requirements.txt
  Remove distutils usage for Python 3.12 compatibility
  fix deps and bump release version
  feat: convert latex to plain text
* main:
  bump version
  Removed formatting on latex comments to prevent % characters from removing lines of text.
  Bump version
  prevent latex formatting from running on code blocks and inline code
  Remove unused dependencies from requirements.txt
  Remove distutils usage for Python 3.12 compatibility
  fix deps and bump release version
  feat: convert latex to plain text
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.

1 participant