Skip to content

Commit

Permalink
Merge pull request #54 from pollinations-ai/fix-2.3.11
Browse files Browse the repository at this point in the history
Fix 2.3.11
  • Loading branch information
pollinations-ai authored Jan 13, 2025
2 parents 11083ba + b3764dc commit f4f325f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ pollinations.ai: (https://pollinations.ai/)
Work with the best generative models from Pollinations using this Python SDK.
```
# FIX 2.3.11
```diff
+ Fixed small jsonMode issue
```
# UPDATE 2.3.10
```diff
+ Option to add referrer in requests (Text, Text.Request, Image, Image.Request)
Expand Down
10 changes: 5 additions & 5 deletions pollinations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"""

__version__ = "2.3.10"
__version__ = "2.3.11"

import requests
import datetime
Expand Down Expand Up @@ -555,7 +555,7 @@ def __call__(self, encode: bool = False, *args, **kwargs):
"model": self.model,
"messages": messages,
"seed": self.seed,
"jsonMode": self.jsonMode,
"json": self.jsonMode,
"referrer": self.referrer
},
headers=API.HEADERS.value,
Expand All @@ -565,7 +565,7 @@ def __call__(self, encode: bool = False, *args, **kwargs):
params = {
"model": self.model,
"seed": self.seed,
"jsonMode": self.jsonMode,
"json": self.jsonMode,
"referrer": self.referrer
}
if self.system:
Expand Down Expand Up @@ -1339,7 +1339,7 @@ async def __call__(self, encode: bool = False, *args, **kwargs):
"model": self.model,
"messages": messages,
"seed": self.seed,
"jsonMode": str(self.jsonMode).lower(),
"json": str(self.jsonMode).lower(),
"referrer": self.referrer
},
headers=API.HEADERS.value,
Expand All @@ -1359,7 +1359,7 @@ async def __call__(self, encode: bool = False, *args, **kwargs):
params = {
"model": self.model,
"seed": self.seed,
"jsonMode": str(self.jsonMode).lower(),
"json": str(self.jsonMode).lower(),
"referrer": self.referrer
}
if self.system:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pollinations"
version = "2.3.10"
version = "2.3.11"
description = "pollinations.ai | Free AI Text & Image Generation"
readme = "README.md"
authors = [{ name = "pollinations.ai", email = "hello@pollinations.ai" }, { name = "git.pollinations.ai", email = "git.pollinations.ai@gmail.com" }]
Expand Down

0 comments on commit f4f325f

Please sign in to comment.