-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
24 changed files
with
1,355 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using LangChain.Providers.OpenAI; | ||
|
||
namespace LangChain.Providers.DeepInfra; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public class DeepInfraConfiguration : OpenAiConfiguration | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public new const string SectionName = "DeepInfra"; | ||
} |
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,24 @@ | ||
using LangChain.Providers.OpenAI; | ||
using OpenAI.Constants; | ||
|
||
namespace LangChain.Providers.DeepInfra; | ||
|
||
/// <summary> | ||
/// </summary> | ||
public class DeepInfraModel(DeepInfraProvider provider, ChatModels model) : OpenAiChatModel(provider, model) | ||
{ | ||
public DeepInfraModel(DeepInfraProvider provider, | ||
DeepInfraModelIds id) : this(provider, DeepInfraModelProvider.GetModelById(id)) | ||
{ | ||
} | ||
|
||
public DeepInfraModel(DeepInfraProvider provider, string id) : this(provider, new ChatModels( | ||
id, | ||
0, | ||
PricePerOutputTokenInUsd: 0.0, | ||
PricePerInputTokenInUsd: 0.0)) | ||
{ | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.