-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: together.ai and Open Router code generator (#173)
* fix: together.ai and deepinfra code generator * fix: Open Router Example * feat: Added Embedding Models for DeepInfra and Together.ai * removed Predefined Models generation. --------- Co-authored-by: Gunpal Jain <gunpal5@hotmail.com>
- Loading branch information
Showing
25 changed files
with
6,931 additions
and
3,610 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,13 @@ | ||
using LangChain.Providers.OpenAI; | ||
|
||
namespace LangChain.Providers.DeepInfra; | ||
|
||
public class DeepInfraEmbeddingModel(DeepInfraProvider provider, string id) | ||
: OpenAiEmbeddingModel(provider, id) | ||
{ | ||
public DeepInfraEmbeddingModel(DeepInfraProvider provider, | ||
DeepInfraModelIds id) : this(provider, | ||
DeepInfraModelProvider.GetModelById(id).Id ?? throw new InvalidOperationException("Model not found")) | ||
{ | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
src/DeepInfra/tools/LangChain.Providers.DeepInfra.CodeGenerator/Classes/ModelType.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,8 @@ | ||
namespace LangChain.Providers.DeepInfra.CodeGenerator.Classes; | ||
|
||
public enum ModelType | ||
{ | ||
Text, | ||
Embedding, | ||
Image | ||
} |
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
Oops, something went wrong.