-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-link-to-local-chat
- Loading branch information
Showing
14 changed files
with
339 additions
and
127 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
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,18 @@ | ||
export const BLACKFORESTLABS_AI_API_BASE_URL = "https://api.us1.bfl.ai/v1"; | ||
|
||
/** | ||
* See the registered mapping of HF model ID => Black Forest Labs model ID here: | ||
* | ||
* https://huggingface.co/api/partners/blackforestlabs/models | ||
* | ||
* This is a publicly available mapping. | ||
* | ||
* If you want to try to run inference for a new model locally before it's registered on huggingface.co, | ||
* you can add it to the dictionary "HARDCODED_MODEL_ID_MAPPING" in consts.ts, for dev purposes. | ||
* | ||
* - If you work at Black Forest Labs and want to update this mapping, please use the model mapping API we provide on huggingface.co | ||
* - If you're a community member and want to add a new supported HF model to Black Forest Labs, please open an issue on the present repo | ||
* and we will tag Black Forest Labs team members. | ||
* | ||
* Thanks! | ||
*/ |
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,18 @@ | ||
export const NOVITA_API_BASE_URL = "https://api.novita.ai/v3/openai"; | ||
|
||
/** | ||
* See the registered mapping of HF model ID => Novita model ID here: | ||
* | ||
* https://huggingface.co/api/partners/novita/models | ||
* | ||
* This is a publicly available mapping. | ||
* | ||
* If you want to try to run inference for a new model locally before it's registered on huggingface.co, | ||
* you can add it to the dictionary "HARDCODED_MODEL_ID_MAPPING" in consts.ts, for dev purposes. | ||
* | ||
* - If you work at Novita and want to update this mapping, please use the model mapping API we provide on huggingface.co | ||
* - If you're a community member and want to add a new supported HF model to Novita, please open an issue on the present repo | ||
* and we will tag Novita team members. | ||
* | ||
* Thanks! | ||
*/ |
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
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,5 @@ | ||
export function delay(ms: number): Promise<void> { | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(), ms); | ||
}); | ||
} |
Oops, something went wrong.