Skip to content

Commit e2aef5d

Browse files
committed
0.75056 - Perplexity API model update
1 parent 7384939 commit e2aef5d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ If you run into any issues, consult the logs or reach out on the repository's [I
236236
---
237237

238238
# Changelog
239+
- 0.75056 - switched to newer Perplexity API models due to new models / old model depreciation
240+
- see [Perplexity API guide for supported models](https://docs.perplexity.ai/guides/model-cards)
239241
- v0.75055 - fixes to the html sanitizer (for Telegram's API; better handling of malformed html), using BeautifulSoup4+lxml for parsing now
240242
- v0.75054 - small fixes and more error catching in `calc_module.py`
241243
- v0.75053 - only include eligible territories in U.S. NWS queries

src/api_perplexity_search.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
config = configparser.ConfigParser()
1818
config.read(CONFIG_PATH)
1919

20-
DEFAULT_PERPLEXITY_MODEL = "llama-3-sonar-large-32k-online"
20+
# Perplexity API model to use -- NOTE: the models keep on changing; latest list is at: https://docs.perplexity.ai/guides/model-cards
21+
# 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)
22+
# DEFAULT_PERPLEXITY_MODEL = "llama-3-sonar-large-32k-online"
23+
DEFAULT_PERPLEXITY_MODEL = "llama-3.1-sonar-large-128k-online"
2124
DEFAULT_PERPLEXITY_MAX_TOKENS = 1024
2225
DEFAULT_PERPLEXITY_TEMPERATURE = 0.0
2326
DEFAULT_PERPLEXITY_MAX_RETRIES = 3

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99
#
1010
# version of this program
11-
version_number = "0.75055"
11+
version_number = "0.75056"
1212

1313
# Add the project root directory to Python's path
1414
import sys

0 commit comments

Comments
 (0)