Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0918213e55 | ||
|
|
3bdb4173f3 | ||
|
|
0363756571 | ||
|
|
48f813f49f | ||
|
|
0a2ea1934d | ||
|
|
27264261ce | ||
|
|
3b9dc6706e | ||
|
|
7c04f0a29c |
+3
-1
@@ -1 +1,3 @@
|
||||
* text eol=crlf
|
||||
* text eol=crlf
|
||||
*.woff binary
|
||||
*.woff2 binary
|
||||
@@ -110,9 +110,11 @@ jobs:
|
||||
git config --local user.name "Stevan Freeborn"
|
||||
git add .
|
||||
git commit -m "docs: documentation for v${{ steps.get-version.outputs.version }} [skip ci]"
|
||||
continue-on-error: true
|
||||
- name: Push documentation
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.ACTIONS_PAT }}
|
||||
branch: ${{ github.ref }}
|
||||
tags: true
|
||||
tags: true
|
||||
continue-on-error: true
|
||||
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<PackageId>AnthropicClient</PackageId>
|
||||
<Version>0.0.1</Version>
|
||||
<Version>0.0.2</Version>
|
||||
<Authors>Stevan Freeborn</Authors>
|
||||
<Description>Anthropic Client Library</Description>
|
||||
<PackageProjectUrl>https://anthropicclient.stevanfreeborn.com/</PackageProjectUrl>
|
||||
|
||||
@@ -2,6 +2,22 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [versionize](https://github.com/versionize/versionize) for commit guidelines.
|
||||
|
||||
<a name="0.0.2"></a>
|
||||
## [0.0.2](https://www.github.com/StevanFreeborn/anthropic-client/releases/tag/v0.0.2) (2024-07-10)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add stop sequences parameter ([0363756](https://www.github.com/StevanFreeborn/anthropic-client/commit/0363756571a00d951f185502d86aac4bbdc6e570))
|
||||
|
||||
### Other
|
||||
|
||||
* Merge branch 'main' of github.com:StevanFreeborn/anthropic-client ([3b9dc67](https://www.github.com/StevanFreeborn/anthropic-client/commit/3b9dc6706e47a3deca861e5306498e91f52b6fb8))
|
||||
* Merge pull request #5 from StevanFreeborn/stevanfreeborn/fix/allow-stop-sequence-to-be-passed ([3bdb417](https://www.github.com/StevanFreeborn/anthropic-client/commit/3bdb4173f31f04446d04a9b2479d39850895c5fc))
|
||||
* correct xml comment ([48f813f](https://www.github.com/StevanFreeborn/anthropic-client/commit/48f813f49fbcf13c298017634bd6c8d7638f9edb))
|
||||
* documentation for v0.0.1 [skip ci] ([0a2ea19](https://www.github.com/StevanFreeborn/anthropic-client/commit/0a2ea1934d936b8b613388a4014cd1286e798825))
|
||||
* update gitattributes to treat font files as binary ([2726426](https://www.github.com/StevanFreeborn/anthropic-client/commit/27264261ce0c71e241d2de82ffe3ee076159dca9))
|
||||
* update workflow to continue on error ([7c04f0a](https://www.github.com/StevanFreeborn/anthropic-client/commit/7c04f0a29c38903ebcb535db5619d9f40387aacb))
|
||||
|
||||
<a name="0.0.1"></a>
|
||||
## [0.0.1](https://www.github.com/StevanFreeborn/anthropic-client/releases/tag/v0.0.1) (2024-07-07)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ public abstract class BaseMessageRequest
|
||||
public string Model { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the system ID to use for the request.
|
||||
/// Gets the system prompt to use for the request.
|
||||
/// </summary>
|
||||
public string? System { get; init; } = null;
|
||||
|
||||
@@ -89,6 +89,7 @@ public abstract class BaseMessageRequest
|
||||
/// <param name="toolChoice">The tool choice mode to use for the request.</param>
|
||||
/// <param name="tools">The tools to use for the request.</param>
|
||||
/// <param name="stream">A value indicating whether the message should be streamed.</param>
|
||||
/// <param name="stopSequences">The prompt stop sequences.</param>
|
||||
/// <exception cref="ArgumentException">Thrown when the model ID is invalid.</exception>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the model or messages is null.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the messages contain no messages.</exception>
|
||||
@@ -106,7 +107,8 @@ public abstract class BaseMessageRequest
|
||||
decimal? topP = null,
|
||||
ToolChoice? toolChoice = null,
|
||||
List<Tool>? tools = null,
|
||||
bool stream = false
|
||||
bool stream = false,
|
||||
List<string>? stopSequences = null
|
||||
)
|
||||
{
|
||||
ArgumentValidator.ThrowIfNull(model, nameof(model));
|
||||
@@ -143,5 +145,6 @@ public abstract class BaseMessageRequest
|
||||
ToolChoice = toolChoice;
|
||||
Tools = tools;
|
||||
Stream = stream;
|
||||
StopSequences = stopSequences ?? [];
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ public class MessageRequest : BaseMessageRequest
|
||||
/// <param name="topP">The top-P value to use for the request.</param>
|
||||
/// <param name="toolChoice">The tool choice mode to use for the request.</param>
|
||||
/// <param name="tools">The tools to use for the request.</param>
|
||||
/// <param name="stopSequences">The prompt stop sequences.</param>
|
||||
/// <exception cref="ArgumentException">Thrown when the model ID is invalid.</exception>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the model or messages is null.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the messages contain no messages.</exception>
|
||||
@@ -39,7 +40,8 @@ public class MessageRequest : BaseMessageRequest
|
||||
int? topK = null,
|
||||
decimal? topP = null,
|
||||
ToolChoice? toolChoice = null,
|
||||
List<Tool>? tools = null
|
||||
List<Tool>? tools = null,
|
||||
List<string>? stopSequences = null
|
||||
) : base(
|
||||
model,
|
||||
messages,
|
||||
@@ -51,7 +53,8 @@ public class MessageRequest : BaseMessageRequest
|
||||
topP,
|
||||
toolChoice,
|
||||
tools,
|
||||
false
|
||||
false,
|
||||
stopSequences
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ public class StreamMessageRequest : BaseMessageRequest
|
||||
/// <param name="topP">The top-P value to use for the request.</param>
|
||||
/// <param name="toolChoice">The tool choice mode to use for the request.</param>
|
||||
/// <param name="tools">The tools to use for the request.</param>
|
||||
/// <param name="stopSequences">The prompt stop sequences.</param>
|
||||
/// <exception cref="ArgumentException">Thrown when the model ID is invalid.</exception>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the model or messages is null.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the messages contain no messages.</exception>
|
||||
@@ -39,7 +40,8 @@ public class StreamMessageRequest : BaseMessageRequest
|
||||
int? topK = null,
|
||||
decimal? topP = null,
|
||||
ToolChoice? toolChoice = null,
|
||||
List<Tool>? tools = null
|
||||
List<Tool>? tools = null,
|
||||
List<string>? stopSequences = null
|
||||
) : base(
|
||||
model,
|
||||
messages,
|
||||
@@ -51,7 +53,8 @@ public class StreamMessageRequest : BaseMessageRequest
|
||||
topP,
|
||||
toolChoice,
|
||||
tools,
|
||||
true
|
||||
true,
|
||||
stopSequences
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user