@@ -4,8 +4,8 @@ import * as fs from "fs";
44const CONFIG_TEMPLATE = `
55// don't edit this part
66import {
7- OpenAICompatibleProvidersListSchema, // Updated import
8- type OpenAICompatibleProvider, // New import for the single provider type
7+ OpenAICompatibleProvidersListSchema,
8+ type OpenAICompatibleProvider,
99} from "./src/lib/ai/open-ai-like-schema";
1010// edit this part
1111const providerList: OpenAICompatibleProvider[] = [ // Updated type annotation
@@ -39,21 +39,24 @@ export const data = JSON.stringify(providerList);
3939
4040const ROOT = process . cwd ( ) ;
4141
42- const CONFIG_PATH = path . join ( ROOT , ".openAILike .ts" ) ;
42+ const CONFIG_PATH = path . join ( ROOT , ".openai-compatible-config .ts" ) ;
4343function createConfigFile ( ) {
4444 if ( ! fs . existsSync ( CONFIG_PATH ) ) {
4545 try {
4646 fs . writeFileSync ( CONFIG_PATH , CONFIG_TEMPLATE , "utf-8" ) ;
47- console . log ( ".openAILike .ts file has been created." ) ;
47+ console . log ( ".openai-compatible-config .ts file has been created." ) ;
4848 } catch ( error ) {
49- console . error ( "Error occurred while creating .openAILike.ts file." ) ;
49+ console . error (
50+ "Error occurred while creating .openai-compatible-config.ts file." ,
51+ ) ;
5052 console . error ( error ) ;
5153 return false ;
5254 }
5355 } else {
54- console . info ( ".openAILike.ts file already exists. Skipping..." ) ;
56+ console . info (
57+ ".openai-compatible-config.ts file already exists. Skipping..." ,
58+ ) ;
5559 }
5660}
5761
58-
59- createConfigFile ( ) ;
62+ createConfigFile ( ) ;
0 commit comments