mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-02-03 14:22:08 -08: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.
15 lines
No EOL
347 B
Python
15 lines
No EOL
347 B
Python
from __future__ import annotations
|
|
|
|
from ..template import OpenaiTemplate
|
|
|
|
class Custom(OpenaiTemplate):
|
|
label = "Custom Provider"
|
|
working = True
|
|
needs_auth = False
|
|
models_needs_auth = False
|
|
base_url = "http://localhost:8080/v1"
|
|
sort_models = False
|
|
|
|
class Feature(Custom):
|
|
label = "Feature Provider"
|
|
working = False |