novitacarlen commited on
Commit
294ee94
·
1 Parent(s): 135016d

feat: remove other endpoint url

Browse files
Files changed (1) hide show
  1. src/lib/inference-utils.ts +1 -1
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 = token ? process.env.INFERENCE_ENDPOINT_URL : process.env.NOVITA_BASE_URL;
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, {