-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use two classes for text-generation and conversational
- Loading branch information
1 parent
50c8bc5
commit 3381ced
Showing
7 changed files
with
66 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from ._common import BaseTextGenerationTask | ||
from ._common import BaseConversationalTask | ||
|
||
|
||
class FireworksAIConversationalTask(BaseTextGenerationTask): | ||
class FireworksAIConversationalTask(BaseConversationalTask): | ||
def __init__(self): | ||
super().__init__(provider="fireworks-ai", base_url="https://api.fireworks.ai/inference", task="conversational") | ||
super().__init__(provider="fireworks-ai", base_url="https://api.fireworks.ai/inference") |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from huggingface_hub.inference._providers._common import BaseTextGenerationTask | ||
from huggingface_hub.inference._providers._common import BaseConversationalTask | ||
|
||
|
||
class SambanovaConversationalTask(BaseTextGenerationTask): | ||
class SambanovaConversationalTask(BaseConversationalTask): | ||
def __init__(self): | ||
super().__init__(provider="sambanova", base_url="https://api.sambanova.ai", task="conversational") | ||
super().__init__(provider="sambanova", base_url="https://api.sambanova.ai") |
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