mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-16 08:51:14 +03:00
Change order of information for llama.cpp
This commit is contained in:
parent
1374a46183
commit
14ea387512
@ -64,7 +64,12 @@ class LlamaCppClient(GenAIClient):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
content = []
|
content = [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": prompt,
|
||||||
|
}
|
||||||
|
]
|
||||||
for image in images:
|
for image in images:
|
||||||
encoded_image = base64.b64encode(image).decode("utf-8")
|
encoded_image = base64.b64encode(image).decode("utf-8")
|
||||||
content.append(
|
content.append(
|
||||||
@ -75,12 +80,6 @@ class LlamaCppClient(GenAIClient):
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
content.append(
|
|
||||||
{
|
|
||||||
"type": "text",
|
|
||||||
"text": prompt,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
# Build request payload with llama.cpp native options
|
# Build request payload with llama.cpp native options
|
||||||
payload = {
|
payload = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user