Spaces:
Running
Running
Remove other endpoint url
#6
by
CarlenBai
- opened
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, {
|