Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
billxbf committed Aug 22, 2023
1 parent 585e5f4 commit 37b10d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion gentopia/agent/vanilla/agent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from typing import List, Union, Optional

from gentopia.agent.base_agent import BaseAgent
from gentopia.llm import OpenAIGPTClient, HuggingfaceLLMClient
from gentopia.llm import OpenAIGPTClient
from gentopia.utils.util import check_huggingface
if check_huggingface():
from gentopia.llm import HuggingfaceLLMClient
from gentopia.llm.base_llm import BaseLLM
from gentopia.model.agent_model import AgentType
from gentopia.output.base_output import BaseOutput
Expand Down
2 changes: 2 additions & 0 deletions gentopia/llm/client/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
raise ImportError("Huggingface LLM requires PyTorch and Transformers to be installed.")
import json
import os
import torch
from transformers import TextIteratorStreamer
from typing import Generator, Optional
from threading import Thread
from pydantic import validator
Expand Down
1 change: 0 additions & 1 deletion gentopia/manager/local_llm_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import socket
from typing import AnyStr, Tuple, List
from time import sleep
from gentopia.llm import HuggingfaceLLMClient
from gentopia.llm.base_llm import BaseLLM
from gentopia.llm.wrap_llm import WrapLLM
from gentopia.manager.base_llm_manager import BaseLLMManager, BaseServerInfo
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='gentopia',
version='0.0.2',
version='0.0.4',
packages=find_packages(exclude=['llm', 'llm.*']),
url='https://github.com/Gentopia-AI/Gentopia',
license='MIT license',
Expand Down Expand Up @@ -43,5 +43,7 @@
'pinecone-client',
'chroma',
'chromadb',
'tiktoken',
'scholarly'
],
)

0 comments on commit 37b10d7

Please sign in to comment.