Fix
This commit is contained in:
parent
9eafc4c49a
commit
46e3c4b84a
1 changed files with 4 additions and 3 deletions
|
@ -151,9 +151,10 @@ def test_llama_server():
|
|||
from fastapi.testclient import TestClient
|
||||
from llama_cpp.server.app import create_app, Settings
|
||||
|
||||
settings = Settings()
|
||||
settings.model = MODEL
|
||||
settings.vocab_only = True
|
||||
settings = Settings(
|
||||
model=MODEL,
|
||||
vocab_only=True,
|
||||
)
|
||||
app = create_app(settings)
|
||||
client = TestClient(app)
|
||||
response = client.get("/v1/models")
|
||||
|
|
Loading…
Reference in a new issue