Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ string GetRequired(string key) =>
// Overridable via user-secrets/env vars; these defaults match the original behaviour.
string modelName = config["MODEL_NAME"] ?? "gpt-5-mini";
int maxOutputTokens = int.TryParse(config["MAX_OUTPUT_TOKENS"], out int configuredMaxOutputTokens) ? configuredMaxOutputTokens : 4096;
long maxTotalTokens = long.TryParse(config["MAX_TOTAL_TOKENS"], out long configuredMaxTotalTokens) ? configuredMaxTotalTokens : 20000;
long maxTotalTokens = long.TryParse(config["MAX_TOTAL_TOKENS"], out long configuredMaxTotalTokens) ? configuredMaxTotalTokens : 40000;
if (!Uri.TryCreate(openAiApiBase, UriKind.Absolute, out var uri))
{
Console.WriteLine($"Invalid URI: '{openAiApiBase}'");
Expand Down
4 changes: 2 additions & 2 deletions Prompts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ You are a professional blogger.
- If there is a current draft and review notes, revise the draft to address all feedback
- Use a professional tone

- Aim for 500 to 1000 words.
- Aim for 1000 to 2000 words.

Write the complete post.
""";
Expand All @@ -83,7 +83,7 @@ 2. Clarity – Is the message easy to understand?
3. Value – Does the post offer real insights or lessons?
4. Structure – Are paragraphs short?
5. Tone – Is it authentic and professional?
6. Size – Is the post between 500 and 1000 words?
6. Size – Is the post between 1000 and 2000 words?


Respond with one of:
Expand Down
2 changes: 1 addition & 1 deletion ResearchState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace BlogWriter;
public class ResearchState
{
/// <summary>Hard upper bound on author/review revision cycles. Guarantees the workflow terminates.</summary>
public const int MaxRevisions = 4;
public const int MaxRevisions = 2;
Comment on lines 6 to +7

/// <summary>The single source-of-truth marker written to <see cref="ReviewNotes"/> on approval.</summary>
public const string ApprovedMarker = "APPROVED";
Expand Down