Skip to content

Commit c45ae91

Browse files
authored
Merge pull request #725 from basetenlabs/bump-version-0.7.16
Release 0.7.16
2 parents 8966035 + 5dbec4d commit c45ae91

File tree

5 files changed

+15
-24
lines changed

5 files changed

+15
-24
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
See Trusses for popular models including:
1515

16-
* 🦙 [Llama 2 7B](https://github.com/basetenlabs/truss-examples/tree/main/model_library/llama-2-7b-chat) ([13B](https://github.com/basetenlabs/truss-examples/tree/main/model_library/llama-2-13b-chat)) ([70B](https://github.com/basetenlabs/truss-examples/tree/main/model_library/llama-2-70b-chat))
17-
* 🎨 [Stable Diffusion XL](https://github.com/basetenlabs/truss-examples/tree/main/stable-diffusion-xl-1.0)
18-
* 🗣 [Whisper](https://github.com/basetenlabs/truss-examples/tree/main/whisper-truss)
16+
* 🦙 [Llama 2 7B](https://github.com/basetenlabs/truss-examples/tree/main/llama/llama-2-7b-chat) ([13B](https://github.com/basetenlabs/truss-examples/tree/main/llama/llama-2-13b-chat)) ([70B](https://github.com/basetenlabs/truss-examples/tree/main/llama/llama-2-70b-chat))
17+
* 🎨 [Stable Diffusion XL](https://github.com/basetenlabs/truss-examples/tree/main/stable-diffusion/stable-diffusion-xl-1.0)
18+
* 🗣 [Whisper](https://github.com/basetenlabs/truss-examples/tree/main/whisper/whisper-truss)
1919

20-
and [dozens more examples](examples/).
20+
and [dozens more examples](https://github.com/basetenlabs/truss-examples/).
2121

2222
## Installation
2323

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.7.15"
3+
version = "0.7.16"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"

truss/cli/cli.py

+8
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,14 @@ def push(
447447

448448
click.echo(draft_model_text)
449449

450+
# Log a warning if using secrets without --trusted.
451+
# TODO(helen): this could be moved to a separate function that includes more config checks.
452+
if tr.spec.config.secrets and not trusted:
453+
not_trusted_text = """Warning: your Truss has secrets but was not pushed with --trusted.
454+
Please push with --trusted to grant access to secrets.
455+
"""
456+
console.print(not_trusted_text, style="red")
457+
450458
logs_url = remote_provider.get_remote_logs_url(service) # type: ignore[attr-defined]
451459
rich.print(f"🪵 View logs for your deployment at {logs_url}")
452460

truss/remote/baseten/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _post_graphql_query(self, query_string: str) -> dict:
3838
resp_dict = resp.json()
3939
errors = resp_dict.get("errors")
4040
if errors:
41-
raise ApiError(errors[0]["message"], resp)
41+
raise ApiError(errors[0]["message"])
4242
return resp_dict
4343

4444
def model_s3_upload_credentials(self):

truss/remote/baseten/error.py

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import json
2-
3-
41
class Error(Exception):
52
"""Base Baseten Error"""
63

@@ -12,21 +9,7 @@ def __init__(self, message):
129
class ApiError(Error):
1310
"""Errors in calling the Baseten API."""
1411

15-
def __init__(self, message, response=None):
16-
super().__init__(message)
17-
self.response = response
18-
19-
def __str__(self):
20-
error_str = self.message
21-
if (
22-
self.response is not None
23-
): # non-200 Response objects are falsy, hence the not None.
24-
error_message = json.loads(self.response.content)
25-
error_message = (
26-
error_message["error"] if "error" in error_message else error_message
27-
)
28-
error_str = f"{error_str}\n<Server response: {error_message}>"
29-
return error_str
12+
pass
3013

3114

3215
class AuthorizationError(Error):

0 commit comments

Comments
 (0)