github-router 0.3.318 → 0.3.319

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.
@@ -2291,7 +2291,7 @@ function collectToolFieldKeys(body) {
2291
2291
  //#endregion
2292
2292
  //#region package.json
2293
2293
  var name = "github-router";
2294
- var version = "0.3.318";
2294
+ var version = "0.3.319";
2295
2295
  //#endregion
2296
2296
  //#region src/lib/approval.ts
2297
2297
  const awaitApproval = async () => {
@@ -5123,9 +5123,7 @@ async function handleNonClaudeResponses(c, opts) {
5123
5123
  return stream;
5124
5124
  }
5125
5125
  const payload = parsedToResponsesPayload(parsed);
5126
- const result = await createResponses(payload, opts.model?.requestHeaders, void 0, true);
5127
- extractAndRecordAic(opts.modelId, result);
5128
- const anthropic = responsesResponseToAnthropicMessage(result, opts.modelId);
5126
+ const anthropic = responsesResponseToAnthropicMessage(await createResponses(payload, opts.model?.requestHeaders, void 0, true), opts.modelId);
5129
5127
  const usage = anthropic.usage;
5130
5128
  logRequest({
5131
5129
  method: "POST",
@@ -5181,9 +5179,7 @@ async function handleNonClaudeChat(c, opts) {
5181
5179
  return stream;
5182
5180
  }
5183
5181
  const payload = parsedToChatPayload(parsed);
5184
- const result = await createChatCompletions(payload, opts.model?.requestHeaders, void 0, true);
5185
- extractAndRecordAic(opts.modelId, result);
5186
- const anthropic = chatResponseToAnthropicMessage(result, opts.modelId);
5182
+ const anthropic = chatResponseToAnthropicMessage(await createChatCompletions(payload, opts.model?.requestHeaders, void 0, true), opts.modelId);
5187
5183
  const usage = anthropic.usage;
5188
5184
  logRequest({
5189
5185
  method: "POST",
@@ -7790,4 +7786,4 @@ function getCodexEnvVars(serverUrl) {
7790
7786
  //#endregion
7791
7787
  export { validateCheapProfilePrerequisites as A, formatCheap1mPrerequisiteFailure as C, profileDescriptor as D, formatFastPrerequisiteFailure as E, checkClaudeVersion as F, updateClaude as I, validateFastProfilePrerequisites as M, validateMaxProfileLaunch as N, resolveLaunchProfile as O, runSelfUpdate as P, LUNA_SCOUT_ALIAS_ID as S, formatCheapestPrerequisiteFailure as T, CHEAP_EXPLORE_ALIAS_ID as _, sharedServerArgs as a, CHEAP_PLAN_ALIAS_ID as b, stopKeepAwake as c, enableFileLogging as d, CHEAPEST_EXPLORE_ALIAS_ID as f, CHEAPEST_REVIEWER_ALIAS_ID as g, CHEAPEST_PLAN_ALIAS_ID as h, setupAndServe as i, validateCheapestProfilePrerequisites as j, validateCheap1mProfilePrerequisites as k, injectModelPickerSettingsFile as l, CHEAPEST_IMPLEMENTER_ALIAS_ID as m, getCodexEnvVars as n, LAUNCH_SECRET_HEADER as o, CHEAPEST_GENERAL_PURPOSE_ALIAS_ID as p, parseSharedArgs as r, startKeepAwake as s, getClaudeCodeEnvVars as t, listModelsForEndpoint as u, CHEAP_GENERAL_PURPOSE_ALIAS_ID as v, formatCheapPrerequisiteFailure as w, CHEAP_REVIEWER_ALIAS_ID as x, CHEAP_IMPLEMENTER_ALIAS_ID as y };
7792
7788
 
7793
- //# sourceMappingURL=server-setup-BOJCIEQi.js.map
7789
+ //# sourceMappingURL=server-setup-DPay_uYp.js.map