Spaces:
Running
Running
novitacarlen
commited on
Commit
·
294ee94
1
Parent(s):
135016d
feat: remove other endpoint url
Browse files
src/lib/inference-utils.ts
CHANGED
|
@@ -71,7 +71,7 @@ export function checkTokenLimit(tokensUsed: number, modelConfig: ModelConfig) {
|
|
| 71 |
}
|
| 72 |
|
| 73 |
export function createInferenceClient({token, bypassToken}: {token: string, bypassToken?: string}): InferenceClient {
|
| 74 |
-
const inferenceEndpointUrl =
|
| 75 |
|
| 76 |
if (inferenceEndpointUrl) {
|
| 77 |
return new InferenceClient(token || bypassToken, {
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
export function createInferenceClient({token, bypassToken}: {token: string, bypassToken?: string}): InferenceClient {
|
| 74 |
+
const inferenceEndpointUrl = process.env.INFERENCE_ENDPOINT_URL;
|
| 75 |
|
| 76 |
if (inferenceEndpointUrl) {
|
| 77 |
return new InferenceClient(token || bypassToken, {
|