Skip to content

Commit

Permalink
style: Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspermarstal committed Sep 13, 2024
1 parent 85f90af commit f5611de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore --locked-mode
- name: Add appsettings.Local.json
run: cp Cellm/appsettings.Local.Ollama.json Cellm/appsettings.Local.json
run: cp src/Cellm/appsettings.Local.Ollama.json src/Cellm/appsettings.Local.json
- name: Build
run: dotnet build --no-restore
- name: Test
Expand Down
3 changes: 1 addition & 2 deletions src/Cellm/AddIn/ArgumentParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public ArgumentParser AddModel(object providerAndModel)
throw new ArgumentException("Model argument argument must be a single cell");
}

var providerAndModelToString = providerAndModelAsExcelReference.GetValue()?.ToString()
?? throw new ArgumentException("Model argument must be a valid cell reference");
var providerAndModelToString = providerAndModelAsExcelReference.GetValue()?.ToString() ?? throw new ArgumentException("Model argument must be a valid cell reference");
_model = GetModel(providerAndModelToString);
break;
default:
Expand Down
8 changes: 4 additions & 4 deletions src/Cellm/AddIn/CellmFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public static object Prompt(
var cellmConfiguration = ServiceLocator.Get<IOptions<CellmConfiguration>>().Value;

return PromptWith(
$"{cellmConfiguration.DefaultModelProvider}/{cellmConfiguration.DefaultModel}",
context,
instructionsOrTemperature,
temperature);
$"{cellmConfiguration.DefaultModelProvider}/{cellmConfiguration.DefaultModel}",
context,
instructionsOrTemperature,
temperature);
}

/// <summary>
Expand Down

0 comments on commit f5611de

Please sign in to comment.