Skip to content

Commit

Permalink
fix: fixed deepinfra generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jan 13, 2025
1 parent 5c2f925 commit 2d8f24e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DeepInfra/src/DeepInfraModelIds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public enum DeepInfraModelIds
/// Context Length: 16384 <br/>
/// Prompt Cost: $0.07/MTok <br/>
/// Completion Cost: $0.07/MTok <br/>
/// Description: Phi-4 is a model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets. The goal of this approach was to ensure that small capable models were trained with data focused on high quality and advanced reasoning. <br/>
/// Description: Phi-4 is a model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&amp;A datasets. The goal of this approach was to ensure that small capable models were trained with data focused on high quality and advanced reasoning. <br/>
/// HuggingFace Url: <a href="https://huggingface.co/microsoft/phi-4">https://huggingface.co/microsoft/phi-4</a>
/// </summary>
Phi4,
Expand Down
2 changes: 1 addition & 1 deletion src/DeepInfra/src/DeepInfraModelProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OpenAI;
using tryAGI.OpenAI;

namespace LangChain.Providers.DeepInfra;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private static async Task CreateAllModelsFile(List<ModelInfo> sorted, string out
var completionCost = Math.Round(((double?)modelToken.SelectToken("pricing.cents_per_output_token") ?? 0) * 10000, 2);

var description =
FormattableString.Invariant($"Name: {modelName} <br/>\r\n/// Organization: {organization} <br/>\r\n/// Context Length: {contextLength} <br/>\r\n/// Prompt Cost: ${promptCost}/MTok <br/>\r\n/// Completion Cost: ${promptCost}/MTok <br/>\r\n/// Description: {(string?)modelToken["description"]} <br/>\r\n/// HuggingFace Url: <a href=\"https://huggingface.co/{modelId}\">https://huggingface.co/{modelId}</a>");
FormattableString.Invariant($"Name: {modelName} <br/>\r\n/// Organization: {organization} <br/>\r\n/// Context Length: {contextLength} <br/>\r\n/// Prompt Cost: ${promptCost}/MTok <br/>\r\n/// Completion Cost: ${promptCost}/MTok <br/>\r\n/// Description: {((string?)modelToken["description"])?.Replace("&", "&amp;", StringComparison.Ordinal)} <br/>\r\n/// HuggingFace Url: <a href=\"https://huggingface.co/{modelId}\">https://huggingface.co/{modelId}</a>");

//Enum Member code with doc
var enumMemberCode = GetEnumMemberCode(enumMemberName, description);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OpenAI;
using tryAGI.OpenAI;

namespace LangChain.Providers.DeepInfra;

Expand Down

0 comments on commit 2d8f24e

Please sign in to comment.