solana-agent 25.0.1__py3-none-any.whl → 25.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,6 @@ LLM provider adapters for the Solana Agent system.
3
3
 
4
4
  These adapters implement the LLMProvider interface for different LLM services.
5
5
  """
6
- from copy import deepcopy
7
6
  from typing import AsyncGenerator, Literal, Optional, Type, TypeVar
8
7
 
9
8
  from openai import AsyncOpenAI
@@ -125,11 +124,10 @@ class OpenAIAdapter(LLMProvider):
125
124
  "model": self.text_model,
126
125
  }
127
126
 
128
- client = deepcopy(self.client)
129
-
130
127
  if api_key and base_url:
131
- client.api_key = api_key
132
- client.base_url = base_url
128
+ client = AsyncOpenAI(api_key=api_key, base_url=base_url)
129
+ else:
130
+ client = self.client
133
131
 
134
132
  if model:
135
133
  request_params["model"] = model
@@ -166,15 +164,16 @@ class OpenAIAdapter(LLMProvider):
166
164
 
167
165
  try:
168
166
  if api_key and base_url:
169
- self.client.api_key = api_key
170
- self.client.base_url = base_url
167
+ client = AsyncOpenAI(api_key=api_key, base_url=base_url)
168
+ else:
169
+ client = self.client
171
170
 
172
171
  if model:
173
172
  self.parse_model = model
174
173
 
175
174
  # Create a patched client with TOOLS_STRICT mode
176
175
  patched_client = instructor.from_openai(
177
- self.client, mode=Mode.TOOLS_STRICT)
176
+ client, mode=Mode.TOOLS_STRICT)
178
177
 
179
178
  # Use instructor's structured generation with function calling
180
179
  response = await patched_client.chat.completions.create(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 25.0.1
3
+ Version: 25.0.2
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -1,6 +1,6 @@
1
1
  solana_agent/__init__.py,sha256=ceYeUpjIitpln8YK1r0JVJU8mzG6cRPYu-HLny3d-Tw,887
2
2
  solana_agent/adapters/__init__.py,sha256=tiEEuuy0NF3ngc_tGEcRTt71zVI58v3dYY9RvMrF2Cg,204
3
- solana_agent/adapters/llm_adapter.py,sha256=Wg-rWJmWlvYFSEdto9rERs26loDGo-Ssx7lmsrFUPlU,8622
3
+ solana_agent/adapters/llm_adapter.py,sha256=YN-53JvsV_B1rK1Bx3x6HLW8o_SNu8RiBfl6CaJSwfw,8625
4
4
  solana_agent/adapters/mongodb_adapter.py,sha256=qqEFbY_v1XGyFXBmwd5HSXSSHnA9wWo-Hm1vGEyIG0k,2718
5
5
  solana_agent/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  solana_agent/client/solana_agent.py,sha256=M2AHloEFXEAM321je9xRdos5dXNQigQ0uYqnzXv7-iA,5208
@@ -29,7 +29,7 @@ solana_agent/services/__init__.py,sha256=ab_NXJmwYUCmCrCzuTlZ47bJZINW0Y0F5jfQ9Oo
29
29
  solana_agent/services/agent.py,sha256=M1Aukr9xKGP9mL0jM_JqdRdWSqG4LxF0y0PDAzE_fpY,24608
30
30
  solana_agent/services/query.py,sha256=bhB6bZKWqsEf_fLXfsSC57q0CtmeDI6jUlxc9a0LGJw,11099
31
31
  solana_agent/services/routing.py,sha256=hC5t98KZPHty9kMX27KcuxcmZlwjm0g59uMkR8n7k_w,6818
32
- solana_agent-25.0.1.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
- solana_agent-25.0.1.dist-info/METADATA,sha256=DM4HWbLFpUieN55GRvCuRRc-iBHgi2E6WijW7ve9H5s,19644
34
- solana_agent-25.0.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
- solana_agent-25.0.1.dist-info/RECORD,,
32
+ solana_agent-25.0.2.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
33
+ solana_agent-25.0.2.dist-info/METADATA,sha256=gakEcfNMeaDQmwu7r1F9oUuls3FfQsW_ZJRCAE0KXVg,19644
34
+ solana_agent-25.0.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
+ solana_agent-25.0.2.dist-info/RECORD,,