Spaces:
Running
Running
Remove other endpoint url (#6)
Browse files- feat: remove other endpoint url (294ee9477fc9c0c6dc159f3f5317087c8c57739d)
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, {
|