Skip to content

Commit ffe4a94

Browse files
authored
Update writer.py
1 parent a4713c2 commit ffe4a94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/writer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def grok_generate(context, provider, model): #for xai
4646
model=model,
4747
messages=context,
4848
)
49-
return chat.sample()
49+
response = chat.sample()
50+
return response.content.strip()
5051

5152
def scrape_website(url, css_selector):
5253
response = requests.get(url)
@@ -392,4 +393,4 @@ def beautify_string(text: str) -> str:
392393
with open(f"{path_to}/index.md", "w", encoding="utf-8") as f:
393394
f.write(markdown_file)
394395

395-
print(f" Composed article: {path_to}/index.md")
396+
print(f" Composed article: {path_to}/index.md")

0 commit comments

Comments
 (0)