Skip to content

Commit

Permalink
fix(core): handle model errors and improve configuration
Browse files Browse the repository at this point in the history
- Import ModelNotSupportedError for proper exception handling in model resolution
- Update login_url configuration to reference class URL attribute dynamically
- Remove redundant typing imports after internal module reorganization
  • Loading branch information
kqlio67 committed Feb 5, 2025
1 parent 86d5ba2 commit 677fff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g4f/Provider/CablyAI.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

from ..typing import AsyncResult, Messages
from ..errors import ModelNotSupportedError
from .template import OpenaiTemplate

class CablyAI(OpenaiTemplate):
url = "https://cablyai.com"
login_url = None
login_url = url
api_base = "https://cablyai.com/v1"
api_key = "sk-your-openai-api-key"

Expand Down

0 comments on commit 677fff6

Please sign in to comment.