Skip to content

Commit

Permalink
🚨 Commit Build Artifact from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and actions-user committed Jan 20, 2024
1 parent 22a4a7b commit 91f6f3c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 56 deletions.
23 changes: 9 additions & 14 deletions dist/main_bun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2103,25 +2103,20 @@ var app = new Hono2({ strict: true }).use("*", cors(), timing(), logger()).use("
c.set("log", void 0);
}).options("*", (c) => c.text("", 204)).get("/", (c) => {
const origin = new URL(c.req.url).origin;
return c.html(
`<pre>
return c.text(`
Hello Gemini-OpenAI-Proxy from ${getRuntimeKey()}!
You can try it with:
curl ${origin}/v1/chat/completions \\
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
</pre>`
);
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
`);
}).post("/v1/chat/completions", chatProxyHandler);

// main_bun.ts
Expand Down
23 changes: 9 additions & 14 deletions dist/main_cloudflare-workers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2103,25 +2103,20 @@ var app = new Hono2({ strict: true }).use("*", cors(), timing(), logger()).use("
c.set("log", void 0);
}).options("*", (c) => c.text("", 204)).get("/", (c) => {
const origin = new URL(c.req.url).origin;
return c.html(
`<pre>
return c.text(`
Hello Gemini-OpenAI-Proxy from ${getRuntimeKey()}!
You can try it with:
curl ${origin}/v1/chat/completions \\
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
</pre>`
);
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
`);
}).post("/v1/chat/completions", chatProxyHandler);

// main_cloudflare-workers.ts
Expand Down
23 changes: 9 additions & 14 deletions dist/main_deno.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2103,25 +2103,20 @@ var app = new Hono2({ strict: true }).use("*", cors(), timing(), logger()).use("
c.set("log", void 0);
}).options("*", (c) => c.text("", 204)).get("/", (c) => {
const origin = new URL(c.req.url).origin;
return c.html(
`<pre>
return c.text(`
Hello Gemini-OpenAI-Proxy from ${getRuntimeKey()}!
You can try it with:
curl ${origin}/v1/chat/completions \\
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
</pre>`
);
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
`);
}).post("/v1/chat/completions", chatProxyHandler);

// main_deno.ts
Expand Down
23 changes: 9 additions & 14 deletions dist/main_node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2401,25 +2401,20 @@ var app = new Hono2({ strict: true }).use("*", cors(), timing(), logger()).use("
c.set("log", void 0);
}).options("*", (c) => c.text("", 204)).get("/", (c) => {
const origin = new URL(c.req.url).origin;
return c.html(
`<pre>
return c.text(`
Hello Gemini-OpenAI-Proxy from ${getRuntimeKey()}!
You can try it with:
curl ${origin}/v1/chat/completions \\
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
</pre>`
);
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7
}'
`);
}).post("/v1/chat/completions", chatProxyHandler);

// main_node.ts
Expand Down

0 comments on commit 91f6f3c

Please sign in to comment.