viktor-hu commited on
Commit
08c3628
·
verified ·
1 Parent(s): 135016d

Remove other endpoint url (#6)

Browse files

- feat: remove other endpoint url (294ee9477fc9c0c6dc159f3f5317087c8c57739d)

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, {