mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-05-30 07:24:05 -07:00
- Changed `api_base` to `base_url` in multiple provider files for consistency. - Updated method signatures and internal references to use `base_url` instead of `api_base`. - Adjusted the `OpenaiTemplate` class to accommodate the new `base_url` parameter. - Enhanced the `ClientFactory` to support custom provider creation with `base_url`. - Modified API request handling in the backend to align with the new naming convention.
17 lines
No EOL
519 B
Python
17 lines
No EOL
519 B
Python
from __future__ import annotations
|
|
|
|
from ..template import OpenaiTemplate
|
|
from ...config import DEFAULT_MODEL
|
|
|
|
class FenayAI(OpenaiTemplate):
|
|
url = "https://fenayai.com"
|
|
login_url = "https://fenayai.com/dashboard"
|
|
base_url = "https://fenayai.com/v1"
|
|
working = True
|
|
needs_auth = True
|
|
models_needs_auth = True
|
|
default_model = DEFAULT_MODEL.split("/")[-1]
|
|
|
|
@classmethod
|
|
def get_model(cls, model: str, **kwargs) -> str:
|
|
return super().get_model(model.split("/")[-1], **kwargs) |