fix pyrefly typuing errors
This commit is contained in:
parent
0c090c8489
commit
8a64d9c959
@ -9,6 +9,7 @@ class OllamaGenerator:
|
|||||||
self.title = title
|
self.title = title
|
||||||
self.inner_title = inner_title
|
self.inner_title = inner_title
|
||||||
self.content = content
|
self.content = content
|
||||||
|
self.response = None
|
||||||
self.chroma = chromadb.HttpClient(host="172.18.0.2", port=8000)
|
self.chroma = chromadb.HttpClient(host="172.18.0.2", port=8000)
|
||||||
ollama_url = f"{os.environ["OLLAMA_PROTOCOL"]}://{os.environ["OLLAMA_HOST"]}:{os.environ["OLLAMA_PORT"]}"
|
ollama_url = f"{os.environ["OLLAMA_PROTOCOL"]}://{os.environ["OLLAMA_HOST"]}:{os.environ["OLLAMA_PORT"]}"
|
||||||
self.ollama_client = Client(host=ollama_url)
|
self.ollama_client = Client(host=ollama_url)
|
||||||
|
@ -18,9 +18,13 @@ class TrilumNotes:
|
|||||||
print("Please run get_token and set your token")
|
print("Please run get_token and set your token")
|
||||||
else:
|
else:
|
||||||
self.ea = ETAPI(self.server_url, self.token)
|
self.ea = ETAPI(self.server_url, self.token)
|
||||||
|
self.new_notes = None
|
||||||
|
self.note_content = None
|
||||||
|
|
||||||
def get_token(self):
|
def get_token(self):
|
||||||
ea = ETAPI(self.server_url)
|
ea = ETAPI(self.server_url)
|
||||||
|
if self.tril_pass == None:
|
||||||
|
raise ValueError("Trillium password can not be none")
|
||||||
token = ea.login(self.tril_pass)
|
token = ea.login(self.tril_pass)
|
||||||
print(token)
|
print(token)
|
||||||
print("I would recomend you update the env file with this tootsweet!")
|
print("I would recomend you update the env file with this tootsweet!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user