-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,089 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[bumpversion] | ||
current_version = 0.0.2 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:pyproject.toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
""" | ||
This file is a template for the .env file. | ||
|
||
Please copy this file to .env and fill in the values. | ||
|
||
For more information about configuration options, please refer to the documentation | ||
|
||
""" | ||
|
||
# Global configs: | ||
USE_AZURE=False | ||
USE_AZURE_TOKEN_PROVIDER=False | ||
MAX_RETRY=10 | ||
RETRY_WAIT_SECONDS=20 | ||
|
||
# api key | ||
OPENAI_API_KEY=your_api_key | ||
# LLM API Setting: | ||
OPENAI_API_KEY=<your_api_key> | ||
CHAT_MODEL=gpt-4-turbo | ||
CHAT_MAX_TOKENS=3000 | ||
CHAT_TEMPERATURE=0.7 | ||
# CHAT_AZURE_API_BASE=<for_Azure_user> | ||
# CHAT_AZURE_API_VERSION=<for_Azure_user> | ||
|
||
# embedding model configs: | ||
EMBEDDING_MODEL=text-embedding-3-small | ||
# EMBEDDING_AZURE_API_BASE=<for_Azure_user> | ||
# EMBEDDING_AZURE_API_VERSION=<for_Azure_user> | ||
|
||
# chat model configs: | ||
CHAT_MODEL=your_model_version | ||
CHAT_MAX_TOKENS=3000 | ||
CHAT_TEMPERATURE=0.7 | ||
CHAT_STREAM=True | ||
# Cache Setting (Optional): | ||
|
||
# Senario Configs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!--- Thank you for submitting a Pull Request! In order to make our work smoother, please make sure your Pull Request meets the following requirements: 1. Provide a general summary of your changes in the Title above; 2. Add appropriate prefixes to titles, such as `build:`, `chore:`, `ci:`, `deps:`, `doc:`, `docs:`, `feat:`, `fix:`, `perf:`, `ref:`, `refactor:`, `revert:`, `style:`, `test:`, `tests:`. --> | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
|
||
## Motivation and Context | ||
<!--- Are there any related issues? If so, please put the link here. --> | ||
<!--- Why is this change required? What problem does it solve? --> | ||
|
||
## How Has This Been Tested? | ||
<!--- Put an `x` in all the boxes that apply: ---> | ||
- [ ] Pass the test by running: `pytest qlib/tests/test_all_pipeline.py` under upper directory of `qlib`. | ||
- [ ] If you are adding a new feature, test on your own test scripts. | ||
|
||
<!--- **ATTENTION**: If you are adding a new feature, please make sure your codes are **correctly tested**. If our test scripts do not cover your cases, please provide your own test scripts under the `tests` folder and test them. More information about test scripts can be found [here](https://docs.python.org/3/library/unittest.html#basic-example), or you could refer to those we provide under the `tests` folder. --> | ||
|
||
## Screenshots of Test Results (if appropriate): | ||
1. Pipeline test: | ||
2. Your own tests: | ||
|
||
## Types of changes | ||
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
- [ ] Fix bugs | ||
- [ ] Add new feature | ||
- [ ] Update documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
jobs: | ||
lint-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check PR Title for Conventional Commit Format | ||
run: | | ||
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|deps|doc|docs|feat|fix|perf|ref|refactor|revert|style|test|tests)(\(\w+\))?!?:\s.*'; then | ||
echo 'The title does not conform to the Conventional Commit.' | ||
echo 'Please refer to "https://www.conventionalcommits.org/"' | ||
exit 1 | ||
fi | ||
name: Lint pull request title | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.