create-ragen-app 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -31
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +151 -37
- package/dist/cli.js.map +1 -1
- package/dist/config-template.js +3 -3
- package/dist/llm-provider.d.ts +32 -10
- package/dist/llm-provider.d.ts.map +1 -1
- package/dist/llm-provider.js +52 -29
- package/dist/llm-provider.js.map +1 -1
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +0 -34
- package/dist/manifest.js.map +1 -1
- package/dist/manual-setup.d.ts.map +1 -1
- package/dist/manual-setup.js +16 -24
- package/dist/manual-setup.js.map +1 -1
- package/dist/route-table.d.ts +12 -4
- package/dist/route-table.d.ts.map +1 -1
- package/dist/route-table.js +6 -6
- package/dist/route-table.js.map +1 -1
- package/dist/worker-runtime.d.ts +101 -0
- package/dist/worker-runtime.d.ts.map +1 -0
- package/dist/worker-runtime.js +118 -0
- package/dist/worker-runtime.js.map +1 -0
- package/package.json +1 -1
- package/dist/litellm-config.d.ts +0 -17
- package/dist/litellm-config.d.ts.map +0 -1
- package/dist/litellm-config.js +0 -28
- package/dist/litellm-config.js.map +0 -1
package/dist/litellm-config.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wires a plain OpenAI or Anthropic API key into `infra/litellm/config.yaml`
|
|
3
|
-
* by inserting a new `model_list` entry as text, not by parsing and
|
|
4
|
-
* re-serializing the YAML. The shipped config is heavily hand-commented
|
|
5
|
-
* (rationale for every model, dated notes, links) and a round-trip through a
|
|
6
|
-
* YAML library would collapse or reorder all of that — a text splice right
|
|
7
|
-
* after the `model_list:` key preserves everything else byte-for-byte.
|
|
8
|
-
*/
|
|
9
|
-
export interface LiteLLMModelEntry {
|
|
10
|
-
modelName: string;
|
|
11
|
-
/** LiteLLM provider-prefixed model id, e.g. "openai/gpt-4o-mini". */
|
|
12
|
-
model: string;
|
|
13
|
-
/** Name of the env var holding the API key, e.g. "OPENAI_API_KEY". */
|
|
14
|
-
apiKeyEnvVar: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function addLiteLLMModel(configText: string, entry: LiteLLMModelEntry): string;
|
|
17
|
-
//# sourceMappingURL=litellm-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellm-config.d.ts","sourceRoot":"","sources":["../src/litellm-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,iBAAiB,GACvB,MAAM,CAoBR"}
|
package/dist/litellm-config.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Wires a plain OpenAI or Anthropic API key into `infra/litellm/config.yaml`
|
|
4
|
-
* by inserting a new `model_list` entry as text, not by parsing and
|
|
5
|
-
* re-serializing the YAML. The shipped config is heavily hand-commented
|
|
6
|
-
* (rationale for every model, dated notes, links) and a round-trip through a
|
|
7
|
-
* YAML library would collapse or reorder all of that — a text splice right
|
|
8
|
-
* after the `model_list:` key preserves everything else byte-for-byte.
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.addLiteLLMModel = addLiteLLMModel;
|
|
12
|
-
function addLiteLLMModel(configText, entry) {
|
|
13
|
-
const lines = configText.split('\n');
|
|
14
|
-
const anchorIndex = lines.findIndex((line) => line.trim() === 'model_list:');
|
|
15
|
-
if (anchorIndex === -1) {
|
|
16
|
-
throw new Error('infra/litellm/config.yaml has no `model_list:` key — cannot insert a model entry.');
|
|
17
|
-
}
|
|
18
|
-
const entryLines = [
|
|
19
|
-
` - model_name: ${entry.modelName}`,
|
|
20
|
-
' litellm_params:',
|
|
21
|
-
` model: ${entry.model}`,
|
|
22
|
-
` api_key: os.environ/${entry.apiKeyEnvVar}`,
|
|
23
|
-
'',
|
|
24
|
-
];
|
|
25
|
-
lines.splice(anchorIndex + 1, 0, ...entryLines);
|
|
26
|
-
return lines.join('\n');
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=litellm-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"litellm-config.js","sourceRoot":"","sources":["../src/litellm-config.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAUH,0CAuBC;AAvBD,SAAgB,eAAe,CAC7B,UAAkB,EAClB,KAAwB;IAExB,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,aAAa,CAAC,CAAC;IAE7E,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,mFAAmF,CACpF,CAAC;IACJ,CAAC;IAED,MAAM,UAAU,GAAG;QACjB,mBAAmB,KAAK,CAAC,SAAS,EAAE;QACpC,qBAAqB;QACrB,gBAAgB,KAAK,CAAC,KAAK,EAAE;QAC7B,6BAA6B,KAAK,CAAC,YAAY,EAAE;QACjD,EAAE;KACH,CAAC;IAEF,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC;IAChD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|