Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenRouter API - browse models and choose #12

Open
drkhateeb opened this issue Sep 17, 2024 · 16 comments
Open

OpenRouter API - browse models and choose #12

drkhateeb opened this issue Sep 17, 2024 · 16 comments

Comments

@drkhateeb
Copy link

Hello dear developer

kindly add this API

https://openrouter.ai/models

easier than one -API

@JuchiaLu
Copy link
Owner

The OpenRouter API appears to be compatible with the OpenAI API. You can try using the OpenAI GUI and enter the following:

baseURL: https://openrouter.ai/

path: /api/v1/chat/completions

to access OpenRouter.

@drkhateeb
Copy link
Author

like this
https://openrouter.ai/models/google/gemini-flash-1.5/api

model name:

@drkhateeb
Copy link
Author

image

@JuchiaLu
Copy link
Owner

could you provide a temporary API Key to my email address(I'll provide in my next comment), you can destroy it later.

@drkhateeb
Copy link
Author

drkhateeb commented Sep 18, 2024 via email

@JuchiaLu
Copy link
Owner

fixed
Multi-Supplier-MT-Plugin.zip

@drkhateeb
Copy link
Author

image

@JuchiaLu
Copy link
Owner

By the way, Claude and DeepSeek have started supporting Prompt Caching, which will enable plugins to implement Glossary feature at a more affordable price (charged at 0.1x the price of the original input pricing). I will follow up on this later.

@drkhateeb
Copy link
Author

drkhateeb commented Sep 18, 2024 via email

@Saeedr85
Copy link

By the way, Claude and DeepSeek have started supporting Prompt Caching, which will enable plugins to implement Glossary feature at a more affordable price (charged at 0.1x the price of the original input pricing). I will follow up on this later.

Great to hear,
Waiting for your improvements and edits

Thanks

@drkhateeb
Copy link
Author

By the way, Claude and DeepSeek have started supporting Prompt Caching, which will enable plugins to implement Glossary feature at a more affordable price (charged at 0.1x the price of the original input pricing). I will follow up on this later.

Hello , any updates?

@JuchiaLu
Copy link
Owner

JuchiaLu commented Oct 9, 2024

Progress is 95% complete, and the new version will be released in the next few days. The new version will support Prompt Caching for both OpenAI and Claude.

You can also use the following placeholders in the "System Prompt" or "User Prompt," which will eventually be replaced with actual content:


  • {{glossary-text}}: Glossary

  • {{source-language}}: Source language

  • {{target-language}}: Target language


  • {{source-text}}: Text to be translated (source text)

  • {{target-text}}: Translated text (target text) (not supported yet, currently, the translation available won't have tags)


  • {{tm-source-text}}: Best matching translation memory source text for the text to be translated

  • {{tm-target-text}}: Best matching translation memory target text for the text to be translated


  • {{above-text}}: Previous part of the text to be translated (can include target text)

  • {{below-text}}: Next part of the text to be translated (can include target text)


  • {{full-text}}: Full text (excluding target text)

  • {{summary-text}}: Summary of the full text (excluding target text)


This will be the only third-party machine translation plugin with the ability to access context.

@drkhateeb
Copy link
Author

drkhateeb commented Oct 9, 2024

wonderful
thanks for your amazing work

does Gemini Support Cashing?
could you please add Gemini - the latest model - to the plugin
Gemini is great at Translation also
best

@JuchiaLu
Copy link
Owner

JuchiaLu commented Oct 9, 2024

Gemini now supports caching. After completing the current tasks, I'll consider supporting Gemini.

@JuchiaLu
Copy link
Owner

I've provide a temporary version in here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants