Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ PROMPTWITH(providerAndModel: string or cell, cells: range, [instruction: range |
Allows you to specify the model as the first argument.

- **providerAndModel (Required)**: A string on the form "provider/model".
- Example: anthropic/claude-3-5-sonnet-20240620
- Default: anthropic/claude-3-5-sonnet-20240620

Example usage:

Expand Down
2 changes: 1 addition & 1 deletion src/Cellm/Models/IModelRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Cellm.Models;

internal interface IModelRequest<TResponse> : IRequest<TResponse>
internal interface IModelRequest<IModelResponse> : IRequest<IModelResponse>
{
Prompt Prompt { get; }
}
5 changes: 0 additions & 5 deletions src/Cellm/Models/IProviderResponse.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Cellm/Models/Llamafile/LlamafileResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

namespace Cellm.Models.Llamafile;

internal record LlamafileResponse(Prompt Prompt) : IProviderResponse;
internal record LlamafileResponse(Prompt Prompt) : IModelResponse;
2 changes: 2 additions & 0 deletions src/Cellm/Services/ServiceLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ private static IServiceCollection ConfigureServices(IServiceCollection services)
services
.AddSingleton(configuration)
.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()))
.AddTransient(typeof(IPipelineBehavior<,>), typeof(SentryBehavior<,>))
.AddTransient(typeof(IPipelineBehavior<,>), typeof(CachingBehavior<,>))
.AddTransient(typeof(IPipelineBehavior<,>), typeof(ToolBehavior<,>))
.AddMemoryCache()
.AddTransient<ArgumentParser>()
Expand Down