Fix client missing exception import (#30)

* Fix missing import, remove cruft imports

* Bump version
This commit is contained in:
cybermaggedon 2024-08-23 12:59:14 +01:00 committed by GitHub
parent e7c498be92
commit 1e92b2048a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 213 additions and 243 deletions

View file

@ -4,11 +4,7 @@ from .. schema import EmbeddingsRequest, EmbeddingsResponse
from .. schema import embeddings_request_queue, embeddings_response_queue
from . base import BaseClient
import pulsar
import _pulsar
import hashlib
import uuid
import time
# Ugly
ERROR=_pulsar.LoggerLevel.Error

View file

@ -1,10 +1,5 @@
import pulsar
import _pulsar
from pulsar.schema import JsonSchema
import hashlib
import uuid
import time
from .. schema import GraphEmbeddingsRequest, GraphEmbeddingsResponse
from .. schema import graph_embeddings_request_queue

View file

@ -1,15 +1,10 @@
import pulsar
import _pulsar
from pulsar.schema import JsonSchema
from .. schema import GraphRagQuery, GraphRagResponse
from .. schema import graph_rag_request_queue, graph_rag_response_queue
from . base import BaseClient
import hashlib
import uuid
import time
# Ugly
ERROR=_pulsar.LoggerLevel.Error
WARN=_pulsar.LoggerLevel.Warn

View file

@ -1,15 +1,9 @@
import pulsar
import _pulsar
from pulsar.schema import JsonSchema
import hashlib
import uuid
import time
from .. schema import TextCompletionRequest, TextCompletionResponse
from .. schema import text_completion_request_queue
from .. schema import text_completion_response_queue
from .. exceptions import *
from . base import BaseClient
# Ugly

View file

@ -1,10 +1,5 @@
import pulsar
import _pulsar
from pulsar.schema import JsonSchema
import hashlib
import uuid
import time
from .. schema import PromptRequest, PromptResponse, Fact
from .. schema import prompt_request_queue

View file

@ -1,11 +1,6 @@
#!/usr/bin/env python3
import pulsar
import _pulsar
from pulsar.schema import JsonSchema
import hashlib
import uuid
import time
from .. schema import TriplesQueryRequest, TriplesQueryResponse, Value
from .. schema import triples_request_queue