-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
525 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
LlmTornado/Chat/Vendors/Anthropic/ChatRequestVendorCohereExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using LlmTornado.Vendor.Anthropic; | ||
using Newtonsoft.Json; | ||
|
||
namespace LlmTornado.Chat.Vendors.Anthropic; | ||
|
||
public class AnthropicCacheSettings | ||
{ | ||
public static readonly AnthropicCacheSettings Ephemeral = new AnthropicCacheSettings(); | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; set; } = "ephemeral"; | ||
|
||
private AnthropicCacheSettings() | ||
{ | ||
|
||
} | ||
} | ||
|
||
public interface IAnthropicChatRequestItem | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Chat features supported only by Anthropic. | ||
/// </summary> | ||
public class ChatRequestVendorAnthropicExtensions | ||
{ | ||
/// <summary> | ||
/// Enables modification of the outbound chat request just before sending it. Use this to control cache in chat-like scenarios.<br/> | ||
/// Arguments: <b>System message</b>; <b>User, Assistant messages</b>; <b>Tools</b> | ||
/// </summary> | ||
public Action<VendorAnthropicChatRequestMessageContent?, List<VendorAnthropicChatRequestMessageContent>, List<VendorAnthropicToolFunction>?>? OutboundRequest; | ||
} |
Oops, something went wrong.