Skip to content

Commit

Permalink
0.75056 - Perplexity API model update
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingFathead committed Dec 29, 2024
1 parent 7384939 commit e2aef5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ If you run into any issues, consult the logs or reach out on the repository's [I
---

# Changelog
- 0.75056 - switched to newer Perplexity API models due to new models / old model depreciation
- see [Perplexity API guide for supported models](https://docs.perplexity.ai/guides/model-cards)
- v0.75055 - fixes to the html sanitizer (for Telegram's API; better handling of malformed html), using BeautifulSoup4+lxml for parsing now
- v0.75054 - small fixes and more error catching in `calc_module.py`
- v0.75053 - only include eligible territories in U.S. NWS queries
Expand Down
5 changes: 4 additions & 1 deletion src/api_perplexity_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
config = configparser.ConfigParser()
config.read(CONFIG_PATH)

DEFAULT_PERPLEXITY_MODEL = "llama-3-sonar-large-32k-online"
# Perplexity API model to use -- NOTE: the models keep on changing; latest list is at: https://docs.perplexity.ai/guides/model-cards
# As of December 2024/January 2025, the latest model is in the llama-3.1 family, i.e.: "llama-3.1-sonar-large-128k-online" (can be small/large/huge)
# DEFAULT_PERPLEXITY_MODEL = "llama-3-sonar-large-32k-online"
DEFAULT_PERPLEXITY_MODEL = "llama-3.1-sonar-large-128k-online"
DEFAULT_PERPLEXITY_MAX_TOKENS = 1024
DEFAULT_PERPLEXITY_TEMPERATURE = 0.0
DEFAULT_PERPLEXITY_MAX_RETRIES = 3
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# version of this program
version_number = "0.75055"
version_number = "0.75056"

# Add the project root directory to Python's path
import sys
Expand Down

0 comments on commit e2aef5d

Please sign in to comment.