Skip to content

Conversation

GreenShadeZhang
Copy link
Member

Add custom openai endpoints to adapt to more large models compatible with the openai api interface. If the endpoint is not configured, it will not affect the original function.

@Oceania2018 Oceania2018 merged commit db08be2 into SciSharp:master Dec 18, 2024
1 check passed
@Joannall
Copy link
Collaborator

Screenshot 2024-12-18 at 4 48 22 PM Screenshot 2024-12-18 at 4 48 42 PM

got error after merge

@GreenShadeZhang
Copy link
Member Author

Screenshot 2024-12-18 at 4 48 22 PM Screenshot 2024-12-18 at 4 48 42 PM
got error after merge

image

   {
     "Provider": "openai",
     "Models": [
       {
         "Name": "qwen2.5-72b-instruct",
         "ApiKey": "***",
         "Endpoint": "https://dashscope.aliyuncs.com/compatible-mode/v1/",
         "Type": "chat",
         "PromptCost": 0.0015,
         "CompletionCost": 0.002
       }
     ]
   }

Here's an example configuration of the other large models I use that are compatible with the OpenAI interface. If you don't want to customize the endpoint, don't write the endpoint field.

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

Successfully merging this pull request may close these issues.

3 participants