解决模型名称返回错误问题
This commit is contained in:
parent
fd50c3a240
commit
882da88603
1 changed files with 2 additions and 4 deletions
|
|
@ -258,7 +258,6 @@ class OllamaModelDetails(BaseModel):
|
||||||
class OllamaModel(BaseModel):
|
class OllamaModel(BaseModel):
|
||||||
name: str
|
name: str
|
||||||
model: str
|
model: str
|
||||||
tag: str
|
|
||||||
size: int
|
size: int
|
||||||
digest: str
|
digest: str
|
||||||
modified_at: str
|
modified_at: str
|
||||||
|
|
@ -611,9 +610,8 @@ def create_app(args):
|
||||||
"""Get available models"""
|
"""Get available models"""
|
||||||
return OllamaTagResponse(
|
return OllamaTagResponse(
|
||||||
models=[{
|
models=[{
|
||||||
"name": LIGHTRAG_NAME,
|
"name": LIGHTRAG_MODEL,
|
||||||
"model": LIGHTRAG_NAME,
|
"model": LIGHTRAG_MODEL,
|
||||||
"tag": LIGHTRAG_TAG,
|
|
||||||
"size": LIGHTRAG_SIZE,
|
"size": LIGHTRAG_SIZE,
|
||||||
"digest": LIGHTRAG_DIGEST,
|
"digest": LIGHTRAG_DIGEST,
|
||||||
"modified_at": LIGHTRAG_CREATED_AT,
|
"modified_at": LIGHTRAG_CREATED_AT,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue