updates romeo to be its own solution
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include "AiGenerator.h"
|
||||
#include "HttpClient.h"
|
||||
#include "JsonParser.h"
|
||||
#include <Core/Memory/MemoryArena.h>
|
||||
#include <Core/Common/CoreUtils.h>
|
||||
#include <Core/HAL/IO/IOStream.h>
|
||||
#include <Core/Memory/MemoryArena.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <Windows.h>
|
||||
@@ -27,11 +28,11 @@ namespace Romeo
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
fseek(f, 0, SEEK_END);
|
||||
long size = ftell(f);
|
||||
fseek(f, 0, SEEK_SET);
|
||||
|
||||
|
||||
if (size <= 0)
|
||||
{
|
||||
fclose(f);
|
||||
@@ -252,7 +253,7 @@ namespace Romeo
|
||||
size_t bodyCap = modelName.Size + escapedPrompt.Size + 256;
|
||||
char* bodyBuf = Juliet::ArenaPushArray<char>(arena, bodyCap JULIET_DEBUG_PARAM("OllamaBody"));
|
||||
snprintf(bodyBuf, bodyCap,
|
||||
"{\"model\":\"%.*s\",\"prompt\":\"%.*s\",\"stream\":false,\"think\":false}",
|
||||
"{\"model\":\"%.*s\",\"prompt\":\"%.*s\",\"stream\":false,\"think\":true}",
|
||||
static_cast<int>(modelName.Size), CStr(modelName),
|
||||
static_cast<int>(escapedPrompt.Size), CStr(escapedPrompt)
|
||||
);
|
||||
|
||||
@@ -1026,6 +1026,8 @@ namespace Romeo
|
||||
}
|
||||
}
|
||||
|
||||
printf("Rome: Done processing batch\n");
|
||||
|
||||
Juliet::ArenaRelease(aiArena);
|
||||
Juliet::ArenaRelease(tempArena);
|
||||
fclose(overviewFile);
|
||||
|
||||
Reference in New Issue
Block a user