mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
fix black formatting
This commit is contained in:
parent
82a63cc050
commit
e659808432
2 changed files with 4 additions and 5 deletions
|
|
@ -8,7 +8,6 @@ from urllib.parse import urlparse
|
|||
from copy import deepcopy
|
||||
from planoai.consts import DEFAULT_OTEL_TRACING_GRPC_ENDPOINT
|
||||
|
||||
|
||||
SUPPORTED_PROVIDERS_WITH_BASE_URL = [
|
||||
"azure_openai",
|
||||
"ollama",
|
||||
|
|
@ -504,7 +503,9 @@ def validate_prompt_config(plano_config_file, plano_config_schema_file):
|
|||
try:
|
||||
validate(config_yaml, config_schema_yaml)
|
||||
except ValidationError as e:
|
||||
path = " → ".join(str(p) for p in e.absolute_path) if e.absolute_path else "root"
|
||||
path = (
|
||||
" → ".join(str(p) for p in e.absolute_path) if e.absolute_path else "root"
|
||||
)
|
||||
raise ValidationError(
|
||||
f"{e.message}\n Location: {path}\n Value: {e.instance}"
|
||||
) from None
|
||||
|
|
|
|||
|
|
@ -429,9 +429,7 @@ def native_validate_config(plano_config_file):
|
|||
# validate_and_render_schema calls exit(1) on failure after
|
||||
# printing to stdout; re-raise so the caller gets a useful message.
|
||||
output = captured.getvalue().strip()
|
||||
raise Exception(output) if output else Exception(
|
||||
"Config validation failed"
|
||||
)
|
||||
raise Exception(output) if output else Exception("Config validation failed")
|
||||
|
||||
|
||||
def native_logs(debug=False, follow=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue