mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Fix
This commit is contained in:
@@ -151,9 +151,10 @@ def test_llama_server():
|
|||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
from llama_cpp.server.app import create_app, Settings
|
from llama_cpp.server.app import create_app, Settings
|
||||||
|
|
||||||
settings = Settings()
|
settings = Settings(
|
||||||
settings.model = MODEL
|
model=MODEL,
|
||||||
settings.vocab_only = True
|
vocab_only=True,
|
||||||
|
)
|
||||||
app = create_app(settings)
|
app = create_app(settings)
|
||||||
client = TestClient(app)
|
client = TestClient(app)
|
||||||
response = client.get("/v1/models")
|
response = client.get("/v1/models")
|
||||||
|
|||||||
Reference in New Issue
Block a user