Skip to content

Commit

Permalink
Demonstrate generate function
Browse files Browse the repository at this point in the history
  • Loading branch information
jncraton committed Jan 4, 2024
1 parent 3eecebb commit 1a065a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions languagemodels/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def generate(
This may use a local model, or it may make an API call to an external
model if API keys are available.
>>> generate(["What is the capital of France?"])
['...Paris...']
"""
if os.environ.get("LANGUAGEMODELS_TS_KEY") or os.environ.get(
"LANGUAGEMODELS_TS_SERVER"
Expand Down

0 comments on commit 1a065a3

Please sign in to comment.