mirror of
https://github.com/katanemo/plano.git
synced 2026-04-26 01:06:25 +02:00
Address PR feedback: move uuid import to top, reuse parsed config in up()
This commit is contained in:
parent
bbe9946207
commit
00cafbb192
2 changed files with 8 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import json
|
||||
import os
|
||||
import uuid
|
||||
from planoai.utils import convert_legacy_listeners
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
import yaml
|
||||
|
|
@ -343,8 +344,6 @@ def validate_and_render_schema():
|
|||
model_provider["base_url"] = CHATGPT_API_BASE
|
||||
if not model_provider.get("access_key"):
|
||||
model_provider["access_key"] = "$CHATGPT_ACCESS_TOKEN"
|
||||
import uuid
|
||||
|
||||
headers = model_provider.get("headers", {})
|
||||
headers.setdefault(
|
||||
"ChatGPT-Account-Id",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue