Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Oct 16, 2024
1 parent bf0aabe commit 0fc43c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/add_help_to_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
quote = '```'

f = io.StringIO()
with (redirect_stdout(f), suppress(SystemExit)):
with redirect_stdout(f), suppress(SystemExit):
cli.main(['-h'])
help_text = f.getvalue().replace('add_help_to_readme.py', 'charla')

Expand Down
3 changes: 2 additions & 1 deletion charla/client/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def generate(self, prompt: str):
self.add_message(role='user', text=prompt)

response = self.client.generate(
model=self.model, prompt=prompt, context=self.context, stream=True, system=self.system)
model=self.model, prompt=prompt, context=self.context, stream=True, system=self.system
)

# Make sure system message is set only once.
self.system = ''
Expand Down
1 change: 0 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ def test_cli_help(capsys):
main(['-h'])
output = capsys.readouterr().out
assert 'language model' in output

0 comments on commit 0fc43c7

Please sign in to comment.