Skip to content

Commit

Permalink
Activate local_tracing in main + Don't override max_tokens in writer.…
Browse files Browse the repository at this point in the history
…py (#156)

* Activate local_tracing from env var in main

* Don't override max_tokens in writer.py
  • Loading branch information
cedricvidal authored Sep 3, 2024
1 parent 9e9e309 commit aec8730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/agents/writer/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def write(researchContext, research, productContext, products, assignment, feedb

result = prompty.execute(
"writer.prompty",
parameters={"stream": True, "max_tokens": 2000},
parameters={"stream": True},
inputs={
"researchContext": researchContext,
"research": research,
Expand Down
2 changes: 1 addition & 1 deletion src/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

load_dotenv()
LOCAL_TRACING = True if os.getenv("LOCAL_TRACING", "false").lower() == "true" else False
tracer = init_tracing()
tracer = init_tracing(local_tracing=LOCAL_TRACING)

app = FastAPI()

Expand Down

0 comments on commit aec8730

Please sign in to comment.