forked from PublicAffairs/openai-gemini
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d8dfdd
commit 094c1b8
Showing
5 changed files
with
56 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="robots" content="noindex, nofollow"> | ||
<meta charset="utf-8"> | ||
</head> | ||
|
||
<body> | ||
<p>This is demo instance of <a href="https://github.com/PublicAffairs/openai-gemini">Gemini ➜ OpenAI</a> API transforming proxy! | ||
|
||
</br> | ||
Running serverless on <em>Deno</em>. | ||
|
||
<p>You can try it with: | ||
|
||
<pre id="sample"> | ||
curl https://my-openai-gemini-demo.vercel.app/v1/chat/completions \ | ||
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{ | ||
"model": "gemini-1.5-pro-latest", | ||
"messages": [{"role": "user", "content": "Hello"}], | ||
"temperature": 0.7 | ||
}' | ||
</pre> | ||
|
||
<script> | ||
const sampleHref = "https://my-openai-gemini-demo.vercel.app/"; | ||
const href = window.location.href; | ||
if (href.startsWith("http") && href.endsWith("/")) { | ||
const sample = document.getElementById("sample"); | ||
sample.textContent = sample.textContent.replace(sampleHref, href); | ||
} | ||
</script> | ||
|
||
<p>Please deploy your own instance, for free! | ||
</br> | ||
<em>This way, you can keep your API key secure.</em> | ||
|
||
<div> | ||
<iframe src="https://ghbtns.com/github-btn.html?user=PublicAffairs&repo=openai-gemini&type=star&count=true" frameborder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters