Skip to content

Commit

Permalink
fix: relative import issue which cause funix fail
Browse files Browse the repository at this point in the history
  • Loading branch information
luochen1990 committed Aug 1, 2024
1 parent 9622d72 commit 883e597
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ai_powered/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from ai_powered.llm_adapter.generic_adapter import GenericFunctionSimulator
from ai_powered.llm_adapter.known_models import complete_model_config
from ai_powered.schema_deref import deref
from .constants import DEBUG, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL_NAME, SYSTEM_PROMPT, SYSTEM_PROMPT_JSON_SYNTAX, SYSTEM_PROMPT_RETURN_SCHEMA
from .colors import gray, green
from ai_powered.constants import DEBUG, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL_NAME, SYSTEM_PROMPT, SYSTEM_PROMPT_JSON_SYNTAX, SYSTEM_PROMPT_RETURN_SCHEMA
from ai_powered.colors import gray, green
import inspect

A = TypeVar("A")
Expand Down
6 changes: 3 additions & 3 deletions src/ai_powered/llm_adapter/generic_adapter.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, Callable, Set
from dataclasses import dataclass
import re
from typing import Any, Callable, Set
import openai
from ai_powered.colors import green, yellow
from ai_powered.constants import DEBUG
from .definitions import FunctionSimulator, ModelFeature
import openai
from ai_powered.llm_adapter.definitions import FunctionSimulator, ModelFeature

def _return_schema_wrapper(return_schema: dict[str, Any]) -> dict[str, Any]:
return {
Expand Down

0 comments on commit 883e597

Please sign in to comment.