Skip to content

Commit

Permalink
chore: files added
Browse files Browse the repository at this point in the history
  • Loading branch information
nuffin committed Oct 16, 2024
1 parent 2b8e070 commit 7dff30f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Empty file added llmsearch/clients/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion llmsearch/clients/localai.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def embedding(self, model: str, text: str) -> Optional[List[float]]:
# Example usage:
if __name__ == "__main__":
# Initialize the client
client = LocalAIClient(base_url="http://localhost:8080", model="your-model-name")
client = LocalAIClient(base_url="http://localhost:8080")

# Example 1: Generating text
prompt = "Tell me a story about a brave knight."
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ alembic==1.13.3
black==24.10.0
Flask-SQLAlchemy==3.1.1
bcrypt==4.2.0
tensorflow==2.17.0
transformers==4.45.2

0 comments on commit 7dff30f

Please sign in to comment.