Skip to content

Commit

Permalink
style: dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspermarstal committed Sep 28, 2024
1 parent 45a884e commit b4194ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Cellm/Models/Llamafile/LlamafileClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public async Task<Prompt> Send(Prompt prompt, string? provider, string? model, U
var llamafile = await _llamafiles[model ?? _llamafileConfiguration.DefaultModel];

return await _openAiClient.Send(
prompt,
provider ?? "Llamafile",
model ?? _llamafileConfiguration.DefaultModel,
prompt,
provider ?? "Llamafile",
model ?? _llamafileConfiguration.DefaultModel,
baseAddress ?? llamafile.BaseAddress);
}

Expand Down Expand Up @@ -102,7 +102,7 @@ private async Task<Process> StartProcess(string modelPath, Uri baseAddress)
process.BeginOutputReadLine();
process.BeginErrorReadLine();
}

await WaitForLlamafile(baseAddress, process);

// Kill the process when Excel exits or dies
Expand Down Expand Up @@ -225,7 +225,7 @@ private static int GetFirstUnusedPort(ushort min = 49152, ushort max = 65535)
{
throw new CellmException($"All local TCP ports between {min} and {max} are currently in use.");
}

return firstInactivePort;
}
}
Expand Down

0 comments on commit b4194ed

Please sign in to comment.